move_image(3)
π move_image(3) β the Arcan Lua API glow-up π
Okay bestie, so we're in the Arcan Lua API today and this little icon is move_image, and honestly? It's giving main character energy for your video objects β¨
π NAME π
move_image β sets brand-new world-space coordinates for the video object you point at. Slay. That's it. That's the whole job π
π¦ SYNOPSIS π¦
nil
move_image( vid, newx, newy, time, interp )
Yep, it returns nil β no receipt, no little gift back, it just does the thing π«Ά
πΈ DESCRIPTION πΈ
Okay so listen: every move/scale/rotate transform can be animated β all you gotta do is hand over a relative deadline π And here's the cute part: these animations can be both queued and combined, which lets the engine interpolate for you (linearly by default, no cap) β so you get inexpensive yet smooth transitions and animations. Iconic behaviour, minimal effort, we love that for us π
And interp? You can set it to any of these constant besties:
INTERP_LINEARINTERP_SINEINTERP_EXPININTERP_EXPOUTINTERP_EXPINOUTINTERP_SMOOTHSTEP
That's the whole menu, pick your vibe π
β EXAMPLE β
function move_image0()
a = fill_surface(64, 64, 255, 0, 0);
show_image(a);
move_image(a, VRESW, VRESH, 200);
move_image(a, 0, 0, 100);
end
Not me reading this like a little choreography: make the surface, show the surface, glide it to VRESW/VRESH over 200, then send it right back to 0, 0 over 100 πβ¨ She's travelling, honestly.
π SEE ALSO π
Go read those too, bestie, they're all in the same friend group π«Ά
Fr fr, keep the exact constant names and argument order β the engine is not out here guessing what you meant π
And that's a wrap, babe β this page is from the image manual, dated October 2026, and it's the move_image(3) moment we all needed πβ¨ Go move something pretty π
π¦ 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