Spiraling Out of Control

to generate a new and unique variation

Source Code

Every variart piece is a small program. This is the one that drew what you're looking at.

var offset = getRandomInt(0, 10);
var theta = 0;

for (var r = 0; r < 360; r += 0.1) {
  var x = r * Math.cos(theta + offset);
  var y = r * Math.sin(theta + offset);
 
  s.circle(x + width/2, y + height/2, 3).attr({fillOpacity: 0.1});

  theta += 0.05;
}