color_surface(3)
β¨ NAME β¨
okay bestie, welcome to color_surface(3) from the Arcan Lua API π β this one is literally color_surface β Create a vobj with a single- color storage. no cap, that's the whole name vibe.
π SYNOPSIS π
VID or BADID
color_surface( w, h, r, g, b )
so you're getting back a VID or a BADID, and you call it with w, h, r, g, b β periodt π
π NOTES π
- these use a different backing store and a single-color non-textured shader β the color values are shader-accessible as a
vec3 obj_coluniform, iykyk β¨ - No texture units will be mapped for these objects. lowkey important, bestie π«Ά
π¦ EXAMPLE π¦
here's the exact example, don't @ me:
function color_surface0()
a = color_surface(32, 32, 255, 0, 0);
show_image(a);
end
π SEE ALSO π
image
π source/version: image Β· date: October 2026 Β· color_surface(3) β mwah bestie, you 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