image_framecyclemode(3)
π
okay so itβs image_framecyclemode(3) time, bestie π
This is the Arcan Lua API page for image_framecyclemode(3) β the one about toggling time-triggered active frameset frame cycling. Itβs giving utility, itβs giving frame management, and itβs literally all right here.
πΈ NAME πΈ
image_framecyclemode β Enable/Disable time-triggered active frameset frame cycling. Like, the name is doing exactly what it says on the tin, no cap.
β¨ SYNOPSIS β¨
Hereβs the shape of it, bestie β and yes, the page literally starts with nil:
nil
image_framecyclemode( vid:dst )
image_framecyclemode( vid:dst, int:time_steps )
So youβve got the vid:dst form, and the vid:dst, int:time_steps form. Thatβs the whole vibe.
π DESCRIPTION π
Every video object with a textured backing store has an active frame defined, which usually refers to the backing store that is allocated during object creation or explicitly updated via image_sharestorage. Periodt. Thatβs the baseline, okay?
This frame can also be picked from a larger set that is allocated via image_framesetsize and populated via set_image_as_frame. So youβre not stuck with just the one frame β thereβs a whole little frameset situation going on. β¨
The active frame property can then be managed manually via image_activeframe or automatically via this function. Manual? Automatic? Both valid. We love options. π
If called without any time_steps argument, the feature will be disabled. Otherwise, the active frame will be cycled in a (n + 1) % count order at a rate of time_steps ticks on the logic clock. Keep that math exactly as-is, bestie β (n + 1) % count, not a typo, not a drill. π
Lowkey important: notime_stepsmeans disabled. Withtime_steps, the cycling is on, attime_stepsticks on the logic clock. Thatβs the whole toggle, and itβs iconic.
π¦ EXAMPLE π¦
Hereβs the example exactly as it appears β copy it like itβs sacred text:
function image_framecyclemode0()
a = fill_surface(64, 64, 255, 0, 0);
b = fill_surface(64, 64, 0, 255, 0);
c = fill_surface(64, 64, 0, 0, 255);
image_framesetsize(a, 3);
set_image_as_frame(a, b, 1);
set_image_as_frame(a, c, 2);
image_framecyclemode(a, 1);
end
Three surfaces, a frameset size of 3, frames set at 1 and 2, and then image_framecyclemode(a, 1) does its thing. Slay. π
π SEE ALSO π
Go give these their flowers too, bestie:
image_framesetsize(3)image_activeframe(3)set_image_as_frame(3)
Thatβs the whole page, bestie π β sourced from the image source/version and dated October 2026, with image_framecyclemode(3) energy from start to finish. Byeee π
π
π¦ 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