expire_image(3)

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

expire_image(3) πŸŽ€

okay so bestie, welcome to expire_image(3) from the Arcan Lua API β€” this is the page for scheduling an image for deletion, and it is genuinely giving β€œtimer, but make it image” energy. πŸ’…


πŸ’– NAME πŸ’–

expire_image β€” schedule the image for deletion. periodt. ✨

🌱 SYNOPSIS 🌱

nil
expire_image( vid, timetolive )

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so for some images, you don’t just want to say β€œdelete this” β€” you want to say when it should be deleted, often in conjunction with how the transformation chain is currently running, and without tracking time in other means. that’s the whole vibe. πŸ’«

this function lets you specify how many ticks the image has left to live. no cap. ⏳

🌸 NOTES 🌸

  • 1 β€” for n : 0 <= n < 1, n will be forced to one tick. the timer to the new value.

✨ EXAMPLE ✨

here’s the example, bestie β€” look at it slay:

function expire_image0()
      a = fill_surface(32, 32, 255, 0, 0);
      expire_image(a, 100);
end

πŸ’€ MISUSE πŸ’€

okay now we’re in the don’t-do-this zone, bestie. this is a misuse example β€” please do not copy it. πŸ™ˆ

function expire_image0()
      expire_image(WORLDID, 10);
end

πŸ’€ MISUSE πŸ’€

misuse example number two, no cap β€” not it:

function expire_image1()
      a = fill_surface(32, 32, 0, 255, 0);
      expire_image(a, -1);
end

πŸ’€ MISUSE πŸ’€

and misuse example number three β€” this one is also absolutely not the move:

function expire_image2()
      a = fill_surface(32, 32, 0, 0, 255);
      expire_image(a, "deadline");
end

🌈 SEE ALSO: 🌈

if you’re still hungry for more, go see:


later, bestie 🫢 β€” this page is image, dated October 2026, and it’s the expire_image(3) page. byeeeee πŸ’–

πŸ“¦ where this page comes from