/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.Yyp1-4BPul1/rev.83
*
* authors:
* hannah
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
float angle = 0.0;
void setup() {
size(500, 500);
background(255);
smooth();
strokeWeight(.5);
}
void draw() {
//ellipse(mouseX, mouseY, 5,5);
translate(mouseX, mouseY);
rotate(angle);
line(10,10, 20,20);
rotate(.5 * angle);
line(20, 20, 35, 35);
rotate(2*angle);
line(35, 35, 50,50);
angle += 0.1;
}