interpolate
fun <T : Color> T.interpolate(other: Color, t: Number, premultiplyAlpha: Boolean = true, hueAdjustment: ComponentAdjustment = HueAdjustments.shorter): T
Interpolate linearly between this color and other.
Parameters
other
the color to interpolate to. It will be converted to this color's space if it isn't already.
t
The amount to interpolate, with 0 returning this color, and 1 returning other
premultiply Alpha
If true, multiply each color's components be the color's alpha value before interpolating, and divide the result by its alpha.
hue Adjustment
How to interpolate the hue component, if there is one.