Skip to main content

Function: interpolateColor()

interpolateColor(color1, color2, alpha): string

Defined in: src/utils/color.ts:158

Interpolate two colors in RGB space and return the result as a hex string.

Ports interpolate_color: alpha of 0.0 yields color1, 1.0 yields color2.

Parameters​

color1​

string

color2​

string

alpha​

number

Returns​

string