Skip to main content

tsien_test/
lib.rs

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