1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub mod render;
pub mod sketch;
pub mod types;

pub use {lyon_tessellation as tess, rgb};

pub use self::sketch::run::run;

pub mod prelude {
    #[cfg(feature = "force_f32")]
    pub use std::f32::consts::*;
    #[cfg(not(feature = "force_f32"))]
    pub use std::f64::consts::*;

    pub use crate::render::*;
    pub use crate::sketch::*;
    pub use crate::types::*;

    #[rustfmt::skip]
    pub mod colors {
        use super::Color;

        pub const BLACK: Color = Color { r: 0.0, g: 0.0, b: 0.0, a: 1.0 };
        pub const WHITE: Color = Color { r: 1.0, g: 1.0, b: 1.0, a: 1.0 };
        pub const RED  : Color = Color { r: 1.0, g: 0.0, b: 0.0, a: 1.0 };
        pub const GREEN: Color = Color { r: 0.0, g: 1.0, b: 0.0, a: 1.0 };
        pub const BLUE : Color = Color { r: 0.0, g: 0.0, b: 1.0, a: 1.0 };
    }
}