max_current_image_order(3)
okay bestie, buckle up for the manual page for max_current_image_order(3) β it's giving βwhere is the highest order value at?β energy, and honestly? iconic. π
π NAME π
max_current_image_order β find the highest ordervalue in use in the current context. No cap, that's the whole mission. β¨
β¨ SYNOPSIS β¨
orderval
max_current_image_order( rtgt )
πΈ DESCRIPTION πΈ
So basically it scans a specific rendertarget β and yeah, the default is worldid β for the highest drawing order value that's currently being used. π
Heads up, bestie: the range65531..65535is explicitly ignored. That's on purpose, so you can do relative operations likeorder_image(a, max_current_image_order() + 1);without objects used as overlays, cursors, or similar special targets interfering. Periodt. π
π EXAMPLE π
function max_current_image_order0()
print(max_current_image_order());
a = fill_surface(32, 32, 0, 0, 0);
order_image(a, 65500);
print(max_current_image_order());
order_image(a, 65535);
print(max_current_image_order());
end
π¦ SEE ALSO π¦
shoutout to the image manual, October 2026 β that's the source/version and date, and she ate. π«Άπ
π¦ 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