lerp( left, right, amount )

static function

Linearly interpolates between two Color values. The amount parameter specifies how far you want to interpolate - 0 is equal to using the left value, and 1 is equal to using the right value. 0.5 will be halfway in between.

Arguments

Name Type Description
left Color The Color to use for the source (0)
right Color The Color to use for the destination (1)
amount Number The percentage to interpolate

Returns

Type Description
Color The result of the linear interpolation