mixColorOf

fun mixColorOf(@ColorInt color1: Int, @ColorInt color2: Int, ratio: Float = 0.5f): Int

Mix two colors.

Return

Int mixed color.

Parameters

color1

the first color.

color2

the second color.

ratio

the mixing ratio, default 0.5f.