Example
Interpolate color channels exactly at a fixed t value.
highlighted = computed this step
Step 1 — Endpoint colors
Set up the exact input values.
color lerp((0, 0, 255), (255, 0, 0), 1/3)
Step 2 — Red channel
Compute the highlighted value.
red85
Step 3 — Green channel
Compute the highlighted value.
green0
Step 4 — Blue channel
Compute the highlighted value.
blue170
Step 5 — Hex color
State the final color.
hex color#5500AA
linear-interpolate-color
Color interpolation applies the same lerp formula to red, green, and blue channels independently.