/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.9fB95erId$S/rev.118
*
* authors:
* Orla Bradley
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "Modified clone of 'Spinner'", created by Ari Bader-Natal
// http://studio.sketchpad.cc/sp/pad/view/ro.93DzrRzw3-CL8/rev.173
// This sketch builds on a prior work, "Untitled Sketch", created by [unnamed author]
// http://sketchpad.cc/sp/pad/view/ro.npuJTk36kNy/rev.1022
int i = 50;
int step = 3;
void setup() {
background(800);
size(400, 400);
smooth();
frameRate(40);
strokeWeight(10);
noFill();
}
void draw() {
background(600);
translate(width/3, height/3);
for (n = 0; n < 130; n++) {
stroke(0, n*4, 300-n, n/2);
rotate(radians(0 + (n * 22)));
ellipse(30 + (sin(radians(i * 14))), 27 - i/4, 102, 80 + i);
}
if (i > 180) {
step *= -2;
}
if (i < -28) {
step *= -2;
}
i+=step;
}