image_set_txcos(3)

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

πŸ’… image_set_txcos(3) ✨

okay bestie, you're reading the image_set_txcos(3) page from the Arcan Lua API, and it's literally about overriding the default texture coordinates for an object. no cap. πŸŽ€

🌸 NAME 🌸

image_set_txcos β€” Override the default texture coordinates for an object.

✨ SYNOPSIS ✨

here's the signature, bestie:

nil
image_set_txcos( vid, txco_t )

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: some specific effects and tricks β€” or manually maintaining spritesheets or similar image packing options β€” require that texture coordinates are skewed. you can pull that off either in the vertex shader stage or by statically overriding the default. that's the whole vibe. πŸ’«

πŸ”₯ EXAMPLE πŸ”₯

this example is lowkey iconic, no notes:

       function image_set_txcos0()
             a = load_image("test.png");
             show_image(a);
             image_set_txcos(a, {0.5, 0.5, 1.0, 0.5, 1.0, 1.0, 1.0, 0.5});
       end

πŸ‘‘ SEE ALSO πŸ‘‘

go check these besties too, iykyk:


πŸ’– that's the whole vibe β€” this one's from image, dated October 2026, and it's literally the image_set_txcos(3) manual. mwah, periodt! 🫢✨

πŸ“¦ where this page comes from