blendHSL
open fun blendHSL(hsl1: @NonNull Array<Float>, hsl2: @NonNull Array<Float>, @FloatRange(from = 0.0, to = 1.0) ratio: Float, outResult: @NonNull Array<Float>)(source)
Blend between hsl1
and hsl2
using the given ratio. This will interpolate the hue using the shortest angle.
A blend ratio of 0.0 will result in hsl1
, 0.5 will give an even blend, 1.0 will result in hsl2
.
Parameters
hsl1
3-element array which holds the first HSL color
hsl2
3-element array which holds the second HSL color
ratio
the blend ratio of hsl1
to hsl2
outResult
3-element array which holds the resulting HSL components