image_mask_set(3)
πΈ NAME πΈ
okay so bestie, welcome to the image_mask_set(3) page β this is the Arcan Lua API, and we're about to make mask flags make sense. π
image_mask_set β Set a status flag on the specified object. periodt.
β¨ SYNOPSIS β¨
short and sweet, no cap:
nil
image_mask_set( vid, maskval )
π DESCRIPTION π
okay so here's the vibe: images that are linked to each other via link_image get a number of their attributes redefined to be relative to the parent they're linked to. iconic, honestly. π¦
but sometimes not all attributes are relevant to inherit, and those can be controlled through the image_mask_ set of functions. yep, that's the whole point.
the currently valid maskvals are:
MASK_UNPICKABLEβ if set, the image will be ignored for picking operations π«MASK_LIVINGβ (default) if set, the image will be deleted when the parent expires πMASK_POSITIONβ (default) image coordinate system origo πMASK_OPACITYβ (default) image opacity π«₯MASK_ROTATIONβ (default) image rotation angle πMASK_SCALEβ (default) reserved, no-op πMASK_MAPPINGβ if set, the image will use the texture coordinate set of its (non-world) parent πΊοΈ
π NOTES π
- heads up, bestie: an invalid
maskvalis considered a terminal state transition. so yeah, not a silly little experiment, fr fr. π
π§ EXAMPLE π§
here's the example, verbatim β no cap:
function image_mask_set0()
a = fill_surface(32, 32, 255, 0, 0);
b = instance_image(a);
show_image({a, b});
move_image(a, 32, 32);
rotate_image(a, 120);
image_mask_clearall(b);
image_mask_set(b, MASK_ORIENTATION);
end
π MISUSE π
and here's the MISUSE example, also verbatim β please don't:
function image_mask_set0()
image_mask_set(WORLDID, math.random(1000));
end
yeah, this is literally listed under MISUSE. consider yourself warned, bestie. π«Ά
π₯ SEE ALSO π₯
go give these pages some love too:
image_mask_toggle(3) image_mask_clear(3) image_mask_clearall(3)
xoxo, the image manual Β· October 2026 Β· image_mask_set(3) ππ«Άβ¨
π¦ 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