Ported from Java Processing to p5.js. Largely the same as the original, but with some small adjustments to camera control.
Press R to reset.