Skip to content
milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.toolkit/blend

blend

[androidJvm]
fun Color.blend(color: Color, @FloatRange(from = 0.0, to = 1.0)ratio: Float): Color

Blend between two Colors using the given ratio. A blend ratio of 0.0 will result in color1, 0.5 will give an even blend, 1.0 will result in color2.

Parameters

androidJvm

color – the second ARGB color
ratio – the blend ratio of color1 to color2
Clone this wiki locally