blendHue

fun Blend.blendHue(from: Color, to: Color, amount: Float): Color

Blends hue from one Color into another. The chroma and tone of the original color are maintained.

Return

from, with a hue blended towards to. Chroma and tone are constant.

Parameters

from

The Color to blend the hue from.

to

The Color to blend the hue to.

amount

how much blending to perform; 0.0 >= and <= 1.0.


fun Color.blendHue(to: Color, amount: Float = 0.5f): Color

Blends this Color into another. The chroma and tone of the original color are maintained.

Receiver

The Color to blend the hue from.

Return

this, with a hue blended towards to. Chroma and tone are constant.

Parameters

to

The Color to blend the hue to.

amount

how much blending to perform; 0.0 >= and <= 1.0.