rust-lang-zh_CN/projects/art/src/utils.rs
2023-04-11 17:17:17 +08:00

10 lines
263 B
Rust

use crate::kinds::*;
/// 结合两种等量的主要颜色,创建出
/// 某种次要颜色。
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
// --跳过代码--
println! ("c1: {:?}, c2: {:?}", c1, c2);
SecondaryColor::Purple
}