blendARGB
open fun blendARGB(@ColorInt color1: Int, @ColorInt color2: Int, @FloatRange(from = 0.0, to = 1.0) ratio: Float): Int(source)
Blend between two ARGB 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
color1
the first ARGB color
color2
the second ARGB color
ratio
the blend ratio of color1 to color2