honcur_art::utils

Function mix

Source
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor
Expand description

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);