Skip to content

raylib.ColorLerp

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get color lerp interpolation between two colors, factor [0.0f..1.0f]

Parameters

Parameter Default Value Note
color1
color2
amount

Return value

Condition Return Value
(always) map

Notes

Example

// Interpolate halfway between black and white
c = raylib.ColorLerp(raylib.BLACK, raylib.WHITE, 0.5)
print c  // a mid-gray color

Clone this wiki locally