function setup() {
  createCanvas(windowWidth, windowHeight);
  colorMode(HSB, 360, 100, 100, 100);
  noFill();
  strokeWeight(1);

  center = createVector(width / 2, height / 2);

  startDrawing();
}
A chain of linked pendulums. Each a little shorter and faster than the one it's linked to.
Each joint of the pendulum leaves behind its own trail.

KEYS
1                   : toggle pendulum
2                   : toggle pendulum path
-                   : decrease speed relation
+                   : increase speed relation
arrow down          : decrease length of lines
arrow up            : increase length of lines
arrow left          : decrease joints
arrow right         : increase joints
del, backspace      : clear screen
s                   : save png

CONTRIBUTED BY
[Niels Poldervaart](http://NielsPoldervaart.nl)