mixColors
Returns the result of mixing two colors together at the specified ratio.
static
static mixColors(color1: UIColor | string, color2: UIColor | string, ratio: number, ignoreAlpha?: boolean): string
Notes
- Where possible, use UIColor methods instead, e.g. UIColor.mix().
Return value
A color string in rgb(a) format, e.g. rgb(40,60,255)
or rgba(40,60,255,.5)
.
Related
- class UIColorAn object that represents a single color value.