image_get_txcos(3)

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

πŸ’… image_get_txcos β€” bestie edition

okay so real talk, this one lives in the Arcan Lua API and it's genuinely one of the cutest little getters you'll ever meet πŸŽ€

✨ NAME ✨

image_get_txcos β€” grab the active texture settings for the object you point at. that's it. that's the whole job. iconic behaviour honestly πŸ‘‘

✨ SYNOPSIS ✨

numary
image_get_txcos( vid )
ngl the numary up there is doing its own thing β€” copy it exactly as written and don't come for me about it 😭

✨ DESCRIPTION ✨

so every object, by default, comes with a texture transformation that maps its coordinate in 0,0,1,1 space. think of it as the object's default outfit, and it ate πŸ’…

but in some circumstances? it may be different ✨ or maybe you're feeling main character energy and you wanna change parts of it yourself. either way, this function is how you peek at what the active texture settings actually are for the object you specify, no cap 🫢

✨ EXAMPLE ✨

function image_get_txcos0()
      a = fill_surface(32, 32, 0, 0, 0);
      b = image_get_txcos(a);
      print( table.concat(b, ",") );
end

literally just: make a fill_surface of 32, 32 with 0, 0, 0, pull the txcos with image_get_txcos(a), then print the table.concat(b, ",") result so you can actually see the numbers. slay 🌸

✨ SEE ALSO ✨

go read those too, bestie, they're the other half of the vibe check πŸ”₯


made with love by the image girlies, dated October 2026 β€” mwah, xoxo πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from