mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-03-22 23:30:32 +08:00
10 lines
263 B
Rust
10 lines
263 B
Rust
use crate::kinds::*;
|
|
|
|
/// 结合两种等量的主要颜色,创建出
|
|
/// 某种次要颜色。
|
|
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
|
|
// --跳过代码--
|
|
println! ("c1: {:?}, c2: {:?}", c1, c2);
|
|
SecondaryColor::Purple
|
|
}
|