resize_image(3)

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

resize_image(3) πŸ’…

okay bestie, this is the Arcan Lua API page for resize_image, and she is lowkey iconic: she changes object dimensions based on absolute pixel values. Let's get into it ✨


✨ NAME ✨

resize_image β€” change object dimensions based on absolute pixel values. That's the whole vibe, periodt πŸ’–

🌸 SYNOPSIS 🌸

nil
resize_image( vobj, new_w, new_h, time, interp )

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: this transformation is internally remapped to the scale_image call, but with scale values based on the initial dimensions of the object, and it sets a new desired output dimension. No cap.

interp can be set to one of these constants:

  • INTERP_LINEAR
  • INTERP_SINE
  • INTERP_EXPIN
  • INTERP_EXPOUT
  • INTERP_EXPINOUT
  • INTERP_SMOOTHSTEP

πŸŽ€ NOTES πŸŽ€

  1. Note 1: the end dimensions can still be manipulated through the vertex shader stage, but such changes do not affect other engine features (like picking and other forms of collision detection). Don't forget that part, bestie 😭

πŸ”₯ EXAMPLE πŸ”₯

       function resize_image0()
             a = fill_surface(64, 64, 0, 255, 0);
             resize_image(a, 128, 128, 100);
             show_image(a);
       end

πŸ’– SEE ALSO: πŸ’–


later, bestie 🫢 β€” this page is from the image source/version, dated October 2026. Slay πŸ’…

πŸ“¦ where this page comes from