use crate::kinds::*;
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
match (c1, c2) {
(PrimaryColor::Red, PrimaryColor::Yellow) | (PrimaryColor::Yellow, PrimaryColor::Red) => {
SecondaryColor::Orange
}
(PrimaryColor::Blue, PrimaryColor::Yellow) | (PrimaryColor::Yellow, PrimaryColor::Blue) => {
SecondaryColor::Green
}
(PrimaryColor::Red, PrimaryColor::Blue) | (PrimaryColor::Blue, PrimaryColor::Red) => {
SecondaryColor::Purple
}
_ => panic!("Cannot mix the same color with itself!"),
}
}