Generative art in Rust with Nannou

Published on Monday, May 10, 2021

At Universe 2020 there was a talk on Nannou, a creative coding frameowrk written in Rust. I was captivated at first, but I'm not much of an artist, so I didn't make much progress with it (and still really haven't). I started tinkering around this weekend and made a small sketch, an infection simulator. It shows you an "infection" spreading across a network of nodes.


I'd like to continue working on it, there are a lot of improvements to be made:

  1. for some reason I chose an adjacency matrix for this, seems kind of inefficient in hindsight, but I think I just wanted an excuse to use nalgebra.
  • remove nalgebra to make it a bit more efficient for arbitrarily high numbers of nodes
  1. draw lines connecting the connected nodes
  2. node count to be set at runtime

I'd like to post more with improvements or new sketches. In the mean time, if you're reading and interested go read up about generative art.