image_mask_toggle(3)
β¨ NAME β¨
image_mask_toggle β Invert a status flag on the specified object π
Okay so welcome to the Arcan Lua API page for image_mask_toggle(3), bestie. The way this function just inverts a status flag on the specified object is lowkey iconic. π«Ά
π«Ά SYNOPSIS π«Ά
The synopsis is literally this, no cap:
nil
image_mask_toggle( vid, maskval )
π NOTES π
Okay so there's one note and it's giving βpay attentionβ energy:
- an invalid
maskvalis considered a terminal state transition. πβ¨
Like, that's a terminal state transition, bestie. Not a cute little oopsie. Handle with care. π
πΈ EXAMPLE πΈ
Here's the example, copied exactly because we do not mess with code in this house:
function image_mask_toggle0()
a = fill_surface(32, 32, 255, 0, 0);
for i=1,4 do
if (image_hit(a, 0, 0)) then
print("pickable");
else
print("unpickable");
end
image_mask_toggle(a, MASK_UNPICKABLE);
end
end
π MISUSE π
And here's the misuse section β this is the part where you go βbestie noβ π:
function image_mask_toggle0()
image_mask_set(WORLDID, math.random(1000));
end
It's in the MISUSE section for a reason, okay? π
π SEE ALSO π
Later bestie β this page came from the image manual, dated October 2026, for image_mask_toggle(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