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 installation or a 5 minute sketch, this framework aims to give artists easy access to the tools they need.
The project was started out of a desire for a creative coding framework inspired by Processing, OpenFrameworks and Cinder, but for Rust. Named after this.
Nannou aims to provide easy, cross-platform access to the things that artists need:
- [x] Windowing & Events via winit.
- [x] Audio via CPAL. Input and output streams. Duplex are not yet supported.
- [ ] Video input, playback and processing (would love suggestions and ideas).
- [x] GUI via conrod. May switch to a custom nannou solution in the future.
- Geometry with functions and iterators for producing vertices and indices:
- [x] 1D -
- [x] 2D -
- [x] 3D -
- [ ] 3D TODO -
Cube, Prisms, Pyramids, *Hedrons, etc.
- [x] Vertex & index iterators.
- [x] Graph for composing geometry.
- [x] 1D -
- Graphics via Vulkan (via vulkano):
- [x] OSC - Open Sound Control.
- [x] CITP - Controller Interface Transport Protocol (network implementation is in progress).
- [x] Ether-Dream Laser DAC protocol and network implementation.
- [x] DMX via sACN - commonly used for lighting and effects.
- [x] Serial - commonly used for interfacing with LEDs and other hardware.
- [x] MIDI - Musical Instrument Digital Interface.
- [x] UDP via std.
- [x] TCP streams and listeners via std.
- Device & I/O stream APIs:
- [ ] Graphical Node Graph via gantz.
- [ ] GUI Editor.
Nannou aims to use only pure-rust libraries. As a new user you should
require nothing more than
cargo build to get going. Falling back to C-bindings
will be considered as a temporary solution in the case that there are no Rust
alternatives yet in development. We prefer to drive forward development of less
mature rust-alternatives than depend on bindings to C code. This should make it
easier for nannou users to become nannou contributors as they do not have to
learn a second language in order to contribute upstream.
Nannou will not contain
unsafe code with the exception of bindings to
operating systems or hardware APIs if necessary.
Nannou wishes to remove the need to decide between lots of different backends that provide access to the same hardware. Instead, we want to focus on a specific set of backends and make sure that they work well.
Rust is a language that is both highly expressive and blazingly fast. Here are some of the reasons why we choose to use it:
- Super fast, as in C and C++ fast.
- A standard package manager that makes it very easy to handle dependencies and share your own projects in seconds.
- Highly portable. Easily build for MacOS, Linux, Windows, Android, iOS and so many others.
- No header files (and no weird linking errors).
- Sum Types and Pattern Matching (and no
- Local type inference. Only write types where it matters, no need to repeat yourself.
- A more modern, ƒunctional and expressive style.
- Memory safe and data-race-free! Get your ideas down without the fear of creating pointer spaghetti or segfault time-sinks.
- Immutability by default. Easily distinguish between variables that can change and those that can't at a glance.
- Module system resulting in very clean and concise name spaces.
- One of the kindest internet communities we've come across (please visit mozilla's #rust or /r/rust if you're starting out and need any pointers)