Skip to content

raylib.ColorBrightness

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get color with brightness correction, brightness factor goes from -1.0f to 1.0f

Parameters

Parameter Default Value Note
color
factor

Return value

Condition Return Value
(always) map

Notes

Example

// Brighten red by 50%
brighter = raylib.ColorBrightness(raylib.RED, 0.5)
print brighter
// Darken it
darker = raylib.ColorBrightness(raylib.RED, -0.5)
print darker

Clone this wiki locally