/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://fsdesign.sketchpad.cc/sp/pad/view/ro.q3K4kN8$tF1/rev.8
*
* authors:
* Ari Bader-Natal
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// http://studio.sketchpad.cc/sp/pad/view/ro.9e1X10Jtx2k2r/latest
float angle = 0.0;
float angle2 = -1.0;
float angle3 = 0.0;
float angle4 = -1.0;
void setup() {
size(640, 480);
smooth();
}
void draw() {
strokeWeight(1);
strokeCap(SQUARE);
stroke(30);
background(255);
translate(width/2, height/2);
rotate(angle);
angle += 0.0009;
for (int i = -width; i <= width; i +=10) {
line(i, -width, i, width);
}
rotate(angle2);
angle2 += -0.0009;
stroke(30);
for (int i = -height; i <= height; i +=10) {
line(-width, i, width, i);
}
rotate(angle3);
angle3 += 0.0008;
for (int i = -width; i <= width; i +=6) {
line(i, -width, i, width);
}
rotate(angle4);
angle4 += -0.0008;
for (int i = -width; i <= width; i +=6) {
line(-width, i, width, i);
}
}