image_tracetag(3)
π image_tracetag π
okay bestie, welcome to the Arcan Lua API page for image_tracetag β yes she's a C-library-adjacent Lua function and yes she's lowkey iconic π
β¨ NAME β¨
image_tracetag β set or retrieve a tracing tag for the specified video object. that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
string:tag, string:alt
image_tracetag( vid )
image_tracetag( vid, string:tag )
image_tracetag( vid, string:tag, string:alt )
image_tracetag( vid, string:tag=nil, string:alt )
like, pick your fighter β there's a signature for every mood π
π¦ DESCRIPTION π¦
so the way this works: this function is used to associate user defined strings to a video object. two flavors, two purposes, both slay:
- the tag form is used to define a tracetag that can be used to assist with debugging, or as ephemeral storage for persisting data across
_resetcalls π₯ - the alt form is alt-text, to mark that the video object is useful for assistive devices such as screen-readers β accessibility is main character energy, no cap βΏβ¨
and here's the cute little detail: if no tag is provided but an alt tag is, the existing tag will be preserved while also updating the alt-text. like she's not gonna throw away your tag just because you only asked about the alt π₯Ί
if no tag or alt is provided, the currently set value will be returned, periodt.
π if there is no tag set, the returned string will be '(no tag)' and the alt text will be empty. not a bug, just her being honest.
π EXAMPLE π
function image_tracetag0()
a = color_surface(32, 32, 255, 0, 0);
image_tracetag(a, "test");
print(image_tracetag(a));
end
look at her go β make a red surface, tag it "test", print it back. chef's kiss π literally the simplest little demo and it ate π
okay that's the whole page bestie, go forth and tag your video objects responsibly π§π«
<thedate>tiny sign-off:</thedate> this page came from the debug corner of the world and it's dated October 2026 β image_tracetag(3), everybody, she's done ππ
π¦ 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