mix(with:by:in:)
Returns a version of self mixed with rhs by the amount specified by fraction.
Declaration
func mix(with rhs: Color, by fraction: Double, in colorSpace: Gradient.ColorSpace = .perceptual) -> ColorParameters
- rhs:
The color to mix
selfwith. - fraction:
The amount of blending,
0.5meansselfis mixed in equal parts withrhs. - colorSpace:
The color space used to mix the colors.
Return Value
A new Color based on self and rhs.