-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ColorContrast
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get color with contrast correction NOTE: Contrast values between -1.0f and 1.0f
| Parameter | Default Value | Note |
|---|---|---|
| color | ||
| contrast |
| Condition | Return Value |
|---|---|
| (always) | map |
// Increase contrast of a color
highContrast = raylib.ColorContrast(raylib.GREEN, 0.8)
print highContrast
// Reduce contrast
lowContrast = raylib.ColorContrast(raylib.GREEN, -0.5)
print lowContrast