color_surface(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

✨ 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 πŸŽ€

  1. these use a different backing store and a single-color non-textured shader β€” the color values are shader-accessible as a vec3 obj_col uniform, iykyk ✨
  2. 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