Monday, July 07, 2014

var detail = 30, maxSize = 100, f = 0; noFill(); strokeWeight(2); var draw = function () { var i, offset, radius; background(255); for (i = f; i < 360 + f; i += 360 / detail) { radius = maxSize * (sin(i) + 2.0); offset = cos(i) * 40.0; pushMatrix(); translate(width/2 + offset, height/2 - offset, offset); rotate(45); stroke(max(20 + cos(i) * 120, 0)); ellipse(0, 0, radius, radius/2); popMatrix(); } f += 0.5; };

No comments:

Post a Comment