Running Examples

The easiest way to get familiar with Nannou is to explore the examples. To get the examples we just need to clone the Nannou repository.

git clone https://github.com/nannou-org/nannou

If you do not have git installed you can press the "Clone or download" button at the top of this page and then press "Download .zip".

Now, change the current directory to nannou.

cd nannou

Run the example using cargo.

cargo run --release --example simple_draw

The --release flag means we want to build with optimisations enabled.

If you are compiling nannou for the first time you will see cargo download and build all the necessary dependencies.

cargo

Once the example compiles you should see the following window appear.

simple_draw_HD

To run any of the other examples, replace simple_draw with the name of the desired example.