a defaults to 255.
Fields
0..255 clamps.
Where Colors are accepted
Everywhererenderer.* takes a color, and ui.ColorPicker.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create RGBA colors for rendering, ESP, and UI controls.
a defaults to 255.
local white = Color(255, 255, 255)
local red = Color(255, 0, 0)
local half = Color(0, 128, 255, 128)
local c = Color(200, 150, 100)
c.r, c.g, c.b, c.a -- 200, 150, 100, 255
c.a = 128 -- writable
0..255 clamps.
renderer.* takes a color, and ui.ColorPicker.
renderer.RectFilled(10, 10, 100, 100, Color(0, 200, 0))
local col = g.ColorPicker("outline", Color(255, 0, 0, 200))
local c = col:Get() -- returns a Color