image_matchstorage(3)

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

πŸ¦‹ image_matchstorage β€” test if two vids share the same underlying storage πŸ’…

okay bestie, this is the image_matchstorage(3) page from the Arcan Lua API ✨. it's a tiny little storage vibe check for two vids, and honestly it ate.

πŸŽ€ NAME

image_matchstorage β€” test if two vids share the same underlying storage. that's the whole assignment, no cap πŸ’–

πŸ“œ SYNOPSIS

true or false
image_matchstorage( v1, v2 )

so yeah, it gives you back true or false, and you hand it v1 and v2 🫢

πŸ” DESCRIPTION

here's the tea β˜•: this function tells you if two vids share the same underlying backing store. lowkey iconic when you need to make a transition based on visual properties that are inherent to the backing store.

and why would you need this? because there are no strong equality tests for regular vids β€” they're all treated as unique 😭. so don't come at regular vids expecting a clean equality test, bestie. image_matchstorage is the function doing the backing-store check.

✨ EXAMPLE

peep the example, exactly as written:

function image_matchstorage0()
      a = fill_surface(32, 32, 0, 255, 0);
      c = fill_surface(32, 32, 255, 0, 0);
      b = null_surface(32, 32);
      image_sharestorage(a, b);
      assert(image_matchstorage(a, b) == true);
      assert(image_matchstorage(a, c) == false);
      image_sharestorage(a, c);
      assert(image_matchstorage(a, c) == true);
end

🌈 SEE ALSO:

  • image β€” the related page to go check out πŸ‘‘

okay that's the whole page, bestie β€” later! 🫢 this was from the image manual, October 2026, page image_matchstorage(3) πŸ’–

πŸ“¦ where this page comes from