image_transform_cycle(3)
β¨ NAME β¨
okay so bestie, welcome to the image_transform_cycle(3) page β itβs part of the Arcan Lua API and lives in the image manual. π This one is all about toggling transform cycles ON/OFF. slay.
πΈ SYNOPSIS πΈ
nil
image_transform_cycle( vid, toggle )
π DESCRIPTION π
So hereβs the vibe: by default, when an object has one or several transforms queued up, all tracking of a transform state gets dropped after that transform has been completed. periodt.
This function changes that behavior β instead of dropping the state, it requeues the transform at the end of the chain, which loops the animation. πβ¨
π¦ NOTES π¦
- Fair warning, bestie: since this makes a lot of the object state variable, this function has a severe impact on the ability to cache previous states β and because of that, it can be very expensive. π like, expensive expensive.
π EXAMPLE π
function image_transform_cycle0()
a = fill_surface(32, 32, 255, 0, 0);
image_transform_cycle(a, 1);
move_image(a, 100, 100, 100);
rotate_image(a, 100, 100);
move_image(a, 10, 10, 100);
scale_image(a, 64, 64, 25);
scale_image(a, 32, 32, 25);
end
thatβs the whole page, bb π«Ά β source/version vibes are from the image manual, dated October 2026, and youβre reading image_transform_cycle(3). πβ¨π
π¦ 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