image_get_txcos(3)
π 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
- 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