lerp
Function
Common
fun lerp(start: Shadow, stop: Shadow, fraction: Float): Shadow
Linearly interpolate two Shadow
s.
Common
fun lerp(start: Color, stop: Color, @FloatRange(from = 0.0, to = 1.0) fraction: Float): Color
Linear interpolate between two Colors
, start
and stop
with fraction
fraction
between the two. The ColorSpace
of the result is always the ColorSpace
of
stop
. fraction
should be between 0 and 1, inclusive. Interpolation is done in the
ColorSpaces.Oklab
color space.