image_surface_properties(3)
π image_surface_properties(3) π
okay so bestie, this one lives in the Arcan Lua API family and honestly? it's a little legend. let me put you on. β¨
πΈ NAME πΈ
image_surface_properties β literally retrieves the current properties of the object you point at. that's it. that's the whole vibe check. π
π¦ SYNOPSIS π¦
proptbl
image_surface_properties( vid, dt )
β¨ DESCRIPTION β¨
so every object out here is lowkey carrying a whole bunch of attributes around with it. and some of those attributes β the ones that directly influence rendering and that you can mod through transformations (move, rotate, scale, ...) β can actually shift over time. main character attributes, fr fr. π
this function is your girl for pulling either:
- the current state of those attributes rn, or
- what that state would be at a future point in time β just hand it the
dtargument and it'll resolve it for you. π₯
iykyk.
π NOTES π
- the fields hanging out inside
proptblare: (x,y,z,width,height,angle,roll,pitch,yaw,opacityandorder). that's the whole squad. π«Ά - the values you get back are expressed in local (object) coordinate space β like, the object's own little world, not the global one. ngl, super important detail. π
π EXAMPLE π
function image_surface_properties0()
a = fill_surface(32, 32, 255, 0, 0);
show_image(a);
move_image(a, 100, 100, 100);
cprops = image_surface_properties(a);
fprops = image_surface_properties(a, 50);
print(string.format("now(x,y): %d, %d -- later(x,y): %d, %d",
cprops.x, cprops.y, fprops.x, fprops.y));
end
look at her go π one call for now, one call with 50 for later, and the print shows you both. iconic. β
π§ SEE ALSO π§
okay that's the whole page bestie β go forth and query those properties π
mwah π this one's from the image manual, October 2026 edition β dated and versioned and slaying, periodt. πΈπ
π¦ 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