scale_image(3)

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

okay so bestie, this is scale_image(3) from the Arcan Lua API manual, and it’s literally here to set the current scale-factor for the specified image. main character energy only βœ¨πŸ’…

πŸŽ€ NAME πŸŽ€

scale_image β€” set the current scale-factor for the specified image. no cap, that’s the whole name section and it ate 🫢

πŸ’… SYNOPSIS πŸ’…

the synopsis says nil, then the call goes like this:

nil
scale_image( vid, sx, sy, time, interp )

🌸 DESCRIPTION 🌸

Alter the scale transform for vid. these values are relative to the initial dimensions for the object in question, while functions such as resize_image internally converts the absolute values to relative scale. lowkey important, so don’t forget it πŸ’–

interp can be set to one of these constants: INTERP_LINEAR, INTERP_SINE, INTERP_EXPIN, INTERP_EXPOUT, INTERP_EXPINOUT, INTERP_SMOOTHSTEP. iconic little lineup, honestly 🌈

πŸ¦‹ EXAMPLE πŸ¦‹

here’s the example, unchanged, because I would never edit the sacred code 🧚✨

       function scale_image0()
             a = fill_surface(128, 128, 0, 255, 0, 64, 64);
             scale_image(a, 2.0, 2.0, 100);
             show_image(a);
       end

πŸ‘‘ SEE ALSO πŸ‘‘


that’s the whole page, bestie β€” signing off from the image source/version, dated October 2026 πŸ«ΆπŸŽ€πŸ’œ

πŸ“¦ where this page comes from