/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.455KVE-l4h2/rev.177
*
* authors:
* Ari Bader-Natal
* 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, "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(255);
size(400, 400);
smooth();
frameRate(30);
strokeWeight(8);
noFill();
}
void draw() {
background(255);
translate(width/2, height/2);
for (n = 0; n < 128; n++) {
stroke(0, n*2, 256-n, n/2);
rotate(radians(0 + (n * 15)));
ellipse(30 + (sin(radians(i * 12))), 25 - i/2, 100, 75 + i);
}
if (i > 160) {
step *= -1;
}
if (i < -25) {
step *= -1;
}
i+=step;
}