blend

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

Blend two colors together. The hue, chroma, and tone of the original color will change.

Return

from, blended towards to. Hue, chroma, and tone will change.

Parameters

from

The Color to blend from.

to

The Color to blend to.

amount

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


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

Blend two colors together. The hue, chroma, and tone of the original color will change.

Receiver

The Color to blend from.

Return

this, blended towards to. Hue, chroma, and tone will change.

Parameters

to

The Color to blend to.

amount

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