Skip to content

Commit e13ebaa

Browse files
committed
Update starrrose.pde
1 parent 3806a8d commit e13ebaa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generateme/starrrose/starrrose.pde

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ void draw() {
1919
background(#E8DDCB);
2020

2121
float st = sin(time/100.0);
22-
22+
23+
// update parametrization
2324
sr_a = 100 * st * (noise(time/200.0, -time/100.0)-0.5);
2425
sr_b = 100 * st * (noise(4+time/200.0,1,time/100.0)-0.5);
2526
sr_c = 100 * st * (noise(3-time/200.0)-0.5);
@@ -43,3 +44,7 @@ void drawCurve() {
4344
}
4445
}
4546
}
47+
48+
void keyPressed() {
49+
if(keyCode == 32) saveFrame("sr######.jpg");
50+
}

0 commit comments

Comments
 (0)