Skip to content

Commit 6958d39

Browse files
authored
Stopped Spirograph going to very small on long uptime
1 parent 58c81ae commit 6958d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spirograph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function draw() {
3434
if (r >= rMax || r <= 9) {
3535
rDir *= -1;
3636
O += ODir;
37-
if (O >= r || O <= 0) {
37+
if (O >= 40 || O <= 20) {
3838
ODir *= -1;
3939
}
4040
}

0 commit comments

Comments
 (0)