move_image(3)

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

πŸ’– 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_LINEAR
  • INTERP_SINE
  • INTERP_EXPIN
  • INTERP_EXPOUT
  • INTERP_EXPINOUT
  • INTERP_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