scale_image(3)
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
- 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