resize_image(3)
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_LINEARINTERP_SINEINTERP_EXPININTERP_EXPOUTINTERP_EXPINOUTINTERP_SMOOTHSTEP
π NOTES π
- 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
- 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