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