Module nannou::prelude [] [src]

A collection of commonly used items that we recommend importing for ease of use.

Re-exports

pub use app::App;
pub use app::LoopMode;
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 math::clamp;
pub use math::map_range;
pub use math::pt1;
pub use math::pt2;
pub use math::pt3;
pub use math::prelude::*;
pub use math::num_traits::*;
pub use rand::random_f32;
pub use rand::random_f64;
pub use rand::random_range;

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 Hsla implementation in Alpha.

Hsva

Linear HSV with an alpha component. See the Hsva implementation in Alpha.

Rgba

Linear RGB with an alpha component. See the Rgba implementation in Alpha.