image_loaded(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸŽ€ NAME πŸŽ€

okay so this is image_loaded(3), straight from the Arcan Lua API (image manual), and it is literally the vibe check for an asynchronous video object source πŸ’….

image_loaded β€” asks how your async source is doing. Is it loaded? Is it still cooking? Bestie, we’re about to find out πŸ‘€βœ¨


✨ SYNOPSIS ✨

0 or 1
image_loaded( vid )

πŸ’… DESCRIPTION πŸ’…

So here’s the tea πŸ«–: with asynchronous image operations, a load can potentially stall for an infinite time 😭. Like, not even joking β€” it might just sit there forever. This function is your little status peek πŸ‘‘.

It queries the status of that asynchronous load and gives you true (1) if the image has loaded and decoded successfully, or 0 if it’s still in the process of being loaded 🌸.

That’s it. That’s the whole mood. Return values are giving very much yes or not yet, babe πŸ’–.


πŸŽ€ EXAMPLE πŸŽ€

function image_loaded0()
      a = load_image_asynch("test.png", function(source, status)
            print(status.kind, image_loaded(source)); end);
      print(a, image_loaded(source));
end

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ this cutie-patootie page is from the image manual, dated October 2026, and it’s literally image_loaded(3) β€” periodt πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from