Skip to main content

addf/
lib.rs

1//! # Arc
2//! 
3//! A library for model arc
4
5pub use self::kinds::PrimaColor;
6pub use self::kinds::SecendColor;
7pub use self::utils::mix;
8
9pub mod kinds {
10    /// The primary colors according to the RYB
11    pub enum PrimaColor {
12        Red,
13        Yellow,
14        Blue,
15    }
16
17    /// The secoend
18    pub enum SecendColor {
19        Orge,
20        Green,
21        Purple,
22    }
23}
24
25pub mod utils {
26    use crate::kinds::*;
27
28    /// Mix func
29    pub fn mix(c1: PrimaColor, c2: PrimaColor) -> SecendColor {
30        SecendColor::Green
31    }
32}