-
Notifications
You must be signed in to change notification settings - Fork 0
blend
milan jurkulák edited this page May 2, 2024
·
1 revision
//tvlib/org.mjdev.tvlib.ui.toolkit/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.
androidJvm
color | – the second ARGB color |
ratio | – the blend ratio of color1 to color2 |