-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ColorLerp
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get color lerp interpolation between two colors, factor [0.0f..1.0f]
| Parameter | Default Value | Note |
|---|---|---|
| color1 | ||
| color2 | ||
| amount |
| Condition | Return Value |
|---|---|
| (always) | map |
// Interpolate halfway between black and white
c = raylib.ColorLerp(raylib.BLACK, raylib.WHITE, 0.5)
print c // a mid-gray color