switch_default_imageproc(3)
π switch_default_imageproc(3) β the Arcan Lua API glow-up
okay so bestie, welcome to the Arcan Lua API corner of the world β¨ this is switch_default_imageproc(3) and she's literally the vibe-setter for how your images get post-processed. pull up a chair π
β¨ NAME β¨
switch_default_imageproc β sets the default image post-processing mode, no cap π
β¨ SYNOPSIS β¨
nil
switch_default_imageproc( procmode )
so she hands you back nil (iconic, lowkey humble of her π«Ά) and you pass in exactly one thing: procmode.
β¨ DESCRIPTION β¨
this is the function you call when you want to tell everyone "hey, this is how we're doing images from now on" π
the accepted values are, and I'm quoting the source of truth here:
IMAGEPROC_NORMALβ where the loaded image will be stored without any additional postprocessing. clean, unbothered, main character energy πIMAGEPROC_FLIPHβ where the image will be flipped over the x-axis (so y- row order will be inverted). flip her upside down, she slays either way π¦
that's it, that's the whole menu. two options, both iconic, choose wisely πΈ
β¨ EXAMPLE β¨
ok so here's the little demo script, and yes I'm giving it to you character for character because she's precious:
function switch_default_imageproc0()
switch_default_imageproc(IMAGEPROC_FLIPH);
a = load_image("test.png");
switch_default_imageproc(IMAGEPROC_NORMAL);
b = load_image("test.png");
show_image({a,b});
local props = image_surface_properties(b);
move_image(b, b.width, b.height);
end
see the way she flips it, loads a, sets it back to normal, loads b, shows them both, then pulls props off b and moves b? chef's kiss ππ₯
β¨ MISUSE β¨
now for the part where we learn what NOT to do π first offender:
function switch_default_imageproc0()
switch_default_imageproc("test1");
end
yeah... a string. not it bestie π
β¨ MISUSE β¨
and the second one, because apparently we're doing a whole series:
function switch_default_imageproc1()
switch_default_imageproc(200);
end
a raw 200. nope, we're passing those IMAGEPROC_ constants, not vibes π
fr fr, stick toIMAGEPROC_NORMALandIMAGEPROC_FLIPHand you can't go wrong β¨
and that's the page!! this lil masterpiece comes to you from vidsys, dated October 2026, and it's switch_default_imageproc(3) all the way down ππ go forth and process those images, bestie π
π¦ 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