Perpendicular Parallel Branching
The following animation is pure generative art. It starts with a single line that branches with a certain probability. Each new line has a smaller final length and can branch again but with decreasing probability. Every branch is perpendicular to its parent. Everything is copied cyclically multiple times to achieve a high degree of symmetry.
As usual, I used P5js to generate the animation.
However, I ported the example to Rust to get a feel for Nannou an open-source creative-coding framework for Rust.
You may ask: Why Rust?
First of all, I heard a lot of good things about it, and I always wanted to learn another language to do all the low-level programming.
I am not an expert in C
or C++
so it comes naturally to try Rust
.
For now, I must say it feels good to be back in a statically typed language after programming a lot of Python
. The Rust
source code can be found here.
I also used ffmpeg to create a smooth video: