image_surface_resolve(3)
π image_surface_resolve(3) β the Arcan Lua API, but make it make sense
okay bestie, so you're digging around in image_surface_resolve(3) from the Arcan Lua API β here's the whole vibe, no cap π«Ά
β¨ NAME β¨
image_surface_resolve β pulls the current image properties, but in world-space πβ¨
π SYNOPSIS π
proptbl
image_surface_resolve( vid )
π¦ DESCRIPTION π¦
so here's the tea β β most of the surface_ class of functions hand you their results in object space. kinda local, kinda self-centered, main character energy honestly.
image_surface_resolve is the one that actually goes out and does the socializing πΆββοΈπ¨ β it traverses the related set of object hierarchies and resolves the world-space ones that will be used when compositing the output. that's the whole job. iconic.
πΈ NOTES πΈ
- the fields chillin' inside
proptblare, in this exact order: (x,y,z,width,height,depth,angle,roll,pitch,yaw,opacityandorder) πβ¨ - okay so this one's cost is highly variable π β because the rendering pipeline normallys caches both the resolved properties and the resulting transformation matrices, if possible. so like... sometimes it's fast, sometimes it's doing the whole walk. vibe check accordingly.
lowkey heads up: "highly variable cost" is not a drill, bestie β don't call this in a hot loop and then act surprised π
π§ EXAMPLE π§
function image_surface_resolve0()
a = fill_surface(32, 32, 255, 0, 0);
b = fill_surface(64, 64, 0, 255, 0);
link_image(b, a);
move_image(a, 100, 100);
move_image(b, 50, 50);
props = image_surface_resolve(b);
print(string.format("%d %d", props.x, props.y));
end
like, that's it. that's the whole slay π₯
π SEE ALSO π
go read those too, iykyk π
image Β· October 2026 Β· that's the page, that's the version, that's the date β mwah πβ¨ bye bestie, go resolve some surfaces π¦π
π¦ 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