pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> Result<SecondaryColor, Error>
Expand description

Combines two primary colors in equal amounts to create a secondary color.

§Examples

let x = PrimaryColor::Red;

let y = PrimaryColor::Blue;

let z = mix(x, y);

println!("{:?}", z.unwrap())