honcur_art 0.1.0

A fun game where you guess what number the computer has chosen.
Documentation
//! # honcur_art
//!
//! A library for modeling artistic concepts.
pub use crate::kinds::PrimaryColor;
pub use crate::kinds::SecondaryColor;
pub use crate::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.
    #[derive(PartialEq)]
    pub enum SecondaryColor {
        Orange,
        Green,
        Purple,
    }
    
}


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

    /// Combines two primary colors in equal amounts to create
    /// a secondary color.
    /// 
    /// # Example
    /// ```
    /// use honcur_art::*;
    /// 
    /// let mix = mix(PrimaryColor::Red, PrimaryColor::Yellow);
    /// 
    /// assert!( SecondaryColor::Green == mix);
    /// ```
    pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
        // --snip--
        SecondaryColor::Green
    }
}