Crate nannou

Source
Expand description

An open-source creative-coding toolkit for Rust.

Nannou is a collection of code aimed at making it easy for artists to express themselves with simple, fast, reliable, portable code. Whether working on a 12-month laser installation or a 5 minute sketch, this framework aims to give artists easy access to the tools they need.

If you’re new to nannou, we recommend checking out the examples to get an idea of how nannou applications are structured and how the API works.

Re-exports§

pub use self::app::App;
pub use self::app::LoopMode;
pub use self::draw::Draw;
pub use self::event::Event;
pub use self::frame::Frame;
pub use find_folder;
pub use lyon;
pub use winit;

Modules§

app
Items related to the App type and the application context in general.
color
Color items, including everything from rgb, hsb/l/v, lap, alpha, luma and more, provided by the palette crate.
draw
A simple API for drawing 2D and 3D graphics.
ease
A suite of common interpolation functions often referred to as “easing” and “tweening” functions. This API is provided by the pennereq crate.
event
Application, event loop and window event definitions and implementations.
frame
Items related to the Frame type, describing a single frame of graphics for a single window.
geom
Types, functions and other items related to geometry. This module is the source of all graphics and lazer primitives and aids work in 2D and 3D space.
glam
glam
image
Items related to working with images. Currently, this module simply re-exports the renown image crate which supports reading and writing PNG, JPEG, GIF, WEBP, BMP and more.
io
An extension of the std::io module. Includes functions for safely saving and loading files from any serializable types, along with functions specifically for working with JSON and TOML.
math
A mathematical foundation for nannou including point and vector types and a range of helper/utility functions.
mesh
An API for composing Meshs. Meshs may be composed of different sets of channels including position, color, texture-coordinate and normals. Note that this is quite a low-level representation. For a higher-level, graphics-related mesh API, see the draw module.
noise
Items related to noise generation, API offered via the noise-rs crate.
prelude
A collection of commonly used items that we recommend importing for ease of use.
rand
Items related to randomness and random number generators. Also provides some high-level helper functions.
state
Small tracked parts of the application state. Includes window, keys, mouse, and time - each of which are stored in the App.
text
Text layout logic.
time
Extensions and utilities for working with time.
wgpu
Items related to wgpu and its integration in nannou!
window
The nannou Window API.

Functions§

app
Begin building the App.
sketch
Shorthand for building a simple app that has no model, handles no events and simply draws to a single window.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy