Docs (4.0.0)
class UIColor method

mix

Returns a new UIColor instance for a color that’s closer to the specified color.

mix(color: UIColor | string, amount: number, ignoreAlpha?: boolean): UIColor

Parameters

  • color — The color to mix into the current color
  • amount — The amount to mix the color into the current color, 0–1
  • ignoreAlpha — True if the transparency channel of the second color should be ignored; if set, the resulting color will have the same transparency value as the current color

Return value

A new instance of UIColor.

Related