Docs (4.0.0)
class UIColor method

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

Return value

A color string in rgb(a) format, e.g. rgb(40,60,255) or rgba(40,60,255,.5).

Related