mix()
Returns a new UIColor mixed with the specified color.
mix(color: UIColor | string, amount: number, ignoreAlpha?: boolean): UIColor;
Notes
- Mixing is performed in oklab space for perceptually correct blending.
Parameters
- color — The color to mix in.
- amount — The mix ratio, from 0 (no change) to 1 (fully the other color).
- ignoreAlpha — True to preserve the current color’s alpha value.
Return value
A new UIColor instance.
Related
class UIColor
A class that represents a single color value.
