fake_art/
lib.rs

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