-
Notifications
You must be signed in to change notification settings - Fork 2
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
| Parameter | Default Value | Note |
|---|---|---|
| color | ||
| factor |
| Condition | Return Value |
|---|---|
| (always) | map |
// Brighten red by 50%
brighter = raylib.ColorBrightness(raylib.RED, 0.5)
print brighter
// Darken it
darker = raylib.ColorBrightness(raylib.RED, -0.5)
print darker