image_color(3)
β¨ image_color(3) β¨
okay bestie, welcome to the image_color page β this is part of the Arcan Lua API and it's the glow-up button for your surfaces π
π NAME π
image_color β change the color_surface and the rendertarget clear-color, no cap.
β¨ SYNOPSIS β¨
it hands you back true or false, and it comes in two flavours:
image_color( vid:dst, number:red, number:green, number:blue )
image_color( vid:dst, number:red, number:green, number:blue,
number:alpha )
π¦ DESCRIPTION π¦
so there are literally two whole uses for this function, and both are iconic:
- the first one: it updates the current color that a
color_surfaceuses as the color value that gets passed to the shader π - the second one: every rendertarget β and yes, that includes the sneaky one hiding behind
WORLDIDπ β has a clear color, which is basically its default "background" color. it initialises to25, 25, 25, (255), which is a dark grey vibe, but you can update it whenever you want with this function π¨
π NOTES π
- trying to set this on a surface that's not a rendertarget and is textured? that's a terminal state transition β like, fr fr, do not do that π
πΈ EXAMPLE πΈ
function image_color0()
local a = color_surface(64, 64, 255, 0, 0);
show_image(a);
image_color(a, 0, 255, 0);
end
π EXAMPLE π
function image_color1()
image_color(WORLDID, 255, 0, 0, 0);
end
π MISUSE π
bestie. no. π
function image_color0()
image_color(BADID);
end
π MISUSE π
this one is giving "I didn't read the notes" energy:
function image_color1()
local img = fill_surface(64, 64, 0, 0, 0);
image_color(img, 255, 0, 0, 0);
end
π«Ά SEE ALSO π«Ά
okay that's the whole page, you ate that π go forth and color your little hearts out π
this has been the image manual, October 2026 edition, image_color(3) β mwah, ily, bye π§ββοΈ
π¦ 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