newmana / chroma-elm / Chroma.Interpolator

Provides interpolation between two colors of the same color space.

Definition

interpolate : Chroma.Types.ExtColor -> Chroma.Types.ExtColor -> Basics.Float -> Chroma.Types.ExtColor

Return a new color based on interpolating on two colors and a weighting between them. Will return black if the types are not the same (if one is RGB and CMYK for example).