Function honcur_art::utils::mix [−][src]
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor
Combines two primary colors in equal amounts to create a secondary color.
Example
use honcur_art::*; let mix = mix(PrimaryColor::Red, PrimaryColor::Yellow); assert!( SecondaryColor::Green == mix);