image_state(3)
π image_state(3) π
okay so this is image_state from the Arcan Lua API (section 3 of the manual, bestie, we love a classic) and it's genuinely one of those tiny little functions that you'll forget exists until something looks weird and you're like "what even is that thing" π
π¦ NAME π¦
image_state β get a string representing the internal subtype of a video object β¨
πΈ SYNOPSIS πΈ
typestr
image_state( vid )
π DESCRIPTION π
so real talk β this one is primarily intended for debugging / troubleshooting purposes π«Ά like it's not the main character of your renderer, it's the little bestie behind the scenes holding up a lil sign telling you what you're actually looking at.
it hands you back a string, and that string will be one of these:
frameserver3d objectasynchronous state3d cameraunknown
that's the whole list, no cap π
β EXAMPLE β
first one, super simple β load an image, ask it what it is, print the vibe:
function image_state0()
local img = load_image("test.png");
print(image_state(img));
end
π EXAMPLE π
and the second one, where we make a null_surface, tag it as a model, and print... well, img, exactly as written π copy it verbatim and it is what it is:
function image_state1()
local cam = null_surface(32, 32);
camtag_model(cam);
print(image_state(img));
end
no notes, we're keeping it exactly as the page says it β you saw it here first π
π SEE ALSO: π
image
okay that's the whole thing, short and sweet and iconic fr fr π this page comes to you from the Arcan Lua API, section image_state(3), dated October 2026, and the source is just image π mwah, go debug something, you got this π¦β¨
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms