Skip to content

raylib.ColorFromNormalized

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get color from a map of normalized values [0..1]: x=red, y=green, z=blue, w=alpha (w defaults to 1)

Parameters

Parameter Default Value Note
normalized

Return value

Condition Return Value
(always) map

Notes

Example

// Build a color from normalized [r, g, b, a] components
c = raylib.ColorFromNormalized([1, 0, 0, 1])
print c  // opaque red

Clone this wiki locally