art_time 0.1.0

A library for modeling artistic concepts.
Documentation
//! #Art
//! 
//! A library for modeling artistic concepts.

pub use self::kinds::PrimaryColor;
pub use self::kinds::SecondayColor;
pub use self::utils::mix;

pub mod kinds{
    /// The primary colors according to the RYB color model.
    pub enum PrimaryColor{
        Red,
        Yellow,
        Blue
    }    

    /// The secondary colors according to the RYB color model.
    pub enum SecondayColor{
        Orange,
        Green,
        Purple
    }
}

pub mod utils{
    use crate::kinds::*;

    /// Combines two primary colors in equal amounts to create
    /// as secondary color
    pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondayColor {
        // --snip--
        // ANCHOR_END : here
        SecondayColor::Orange
        // ANCHOR: here
    }
}