Module nannou::prelude [−][src]
A collection of commonly used items that we recommend importing for ease of use.
Re-exports
pub use app; |
pub use app::App; |
pub use app::LoopMode; |
pub use audio; |
pub use color::named::*; |
pub use event::SimpleWindowEvent::*; |
pub use event::Event; |
pub use geom; |
pub use geom::Rect; |
pub use geom::Cuboid; |
pub use io::load_from_json; |
pub use io::load_from_toml; |
pub use io::safe_file_save; |
pub use io::save_to_json; |
pub use io::save_to_toml; |
pub use math::clamp; |
pub use math::deg_to_rad; |
pub use math::rad_to_deg; |
pub use math::turns_to_rad; |
pub use math::rad_to_turns; |
pub use math::fmod; |
pub use math::map_range; |
pub use math::partial_min; |
pub use math::partial_max; |
pub use math::pt1; |
pub use math::pt2; |
pub use math::pt3; |
pub use math::prelude::*; |
pub use math::num_traits::*; |
pub use osc; |
pub use rand::random_f32; |
pub use rand::random_f64; |
pub use rand::random_range; |
pub use ui; |
pub use window; |
Structs
Frame |
A Frame represents all graphics for the application for a single "frame" of time. |
Hsl |
Linear HSL color space. |
Hsv |
Linear HSV color space. |
Point2 |
A point in 2-dimensional space. |
Point3 |
A point in 3-dimensional space. |
Rgb |
Linear RGB. |
Vector2 |
A 2-dimensional vector. |
Vector3 |
A 3-dimensional vector. |
WindowId |
Identifier of a window. Unique for each window. |
Enums
Key |
Symbolic name for a keyboard key. |
Constants
PI |
Archimedes' constant (π) |
PI_F64 |
Archimedes' constant (π) |
TAU |
Two times PI. |
TAU_F64 |
Two times PI. |
Functions
random |
Generates a random value using the thread-local random number generator. |
vec1 |
The short constructor. |
vec2 |
The short constructor. |
vec3 |
The short constructor. |
vec4 |
The short constructor. |
Type Definitions
Hsla |
Linear HSL with an alpha component. See the |
Hsva |
Linear HSV with an alpha component. See the |
Rgba |
Linear RGB with an alpha component. See the |