mix

expect fun mix(otherColor: Color, ratio: UByte): Color

Mixes this color with the other color via a given ratio.

Return

A new Color.

Parameters

otherColor

The other color to mix with this color.

ratio

The mix to use.


expect fun mix(otherColor: Color, ratio: Opacity): Color

Mixes this color with the other color via a given ratio.

Return

A new Color.

Parameters

otherColor

The other color to mix with this color.

ratio

The mix to use (eg Opacity.TEN).

actual fun mix(otherColor: Color, ratio: UByte): Color
actual fun mix(otherColor: Color, ratio: Opacity): Color
actual fun mix(otherColor: Color, ratio: UByte): Color
actual fun mix(otherColor: Color, ratio: Opacity): Color