asdf_qwer/
lib.rs

1//! # Art
2//!
3//! A libary for medling artistic concepts.
4//!
5
6pub use self::kinds::PrimaryColor;
7pub use self::kinds::SecondaryColor;
8pub use self::utils::mix;
9
10pub mod kinds {
11    /// The primary colors according to the RYB color model.
12    pub enum PrimaryColor{
13        Red,
14        Yellow,
15        Blue
16    }
17    /// The secondary colors according to the RYB color model.
18    pub enum SecondaryColor{
19        Orange,
20        Green,
21        Purple,
22    }
23}
24
25pub mod utils{
26    use crate::kinds::*;
27
28    /// Combines two primary colors in equal amounts to create a secondary color.
29    pub fn mix(_c1: PrimaryColor, _c2: PrimaryColor) -> SecondaryColor{
30        // --snip--
31        SecondaryColor::Green
32    }
33}