Skip to content

Commit 69bd67b

Browse files
committed
Change arrow direction in loop animation
1 parent 90a8747 commit 69bd67b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

images/loop/loop.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ private void drawFigure() {
8787
textbox("".equals(word) ? "" : "'"+word+"'", "word", width/2, wordPos);
8888
switch (count) {
8989
case 1:
90-
arrow(width/2, wordPos, width/4+40, listPos+40);
90+
arrow(width/4+40, listPos+40, width/2, wordPos-10);
9191
break;
9292
case 2:
93-
arrow(width/2, wordPos, width/2, listPos+40);
93+
arrow(width/2, listPos+40, width/2, wordPos-10);
9494
break;
9595
case 3:
96-
arrow(width/2, wordPos, width-width/4-40, listPos+40);
96+
arrow(width-width/4-40, listPos+40, width/2, wordPos-10);
9797
break;
9898
}
9999
}

images/loop_openprocessing_version/loop_openprocessing_version.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ private void drawFigure() {
8080
textbox("".equals(word) ? "" : "'"+word+"'", "word", width/2, wordPos);
8181
switch (count) {
8282
case 1:
83-
arrow(width/2, wordPos, width/4+40, listPos+40);
83+
arrow(width/4+40, listPos+40, width/2, wordPos-10);
8484
break;
8585
case 2:
86-
arrow(width/2, wordPos, width/2, listPos+40);
86+
arrow(width/2, listPos+40, width/2, wordPos-10);
8787
break;
8888
case 3:
89-
arrow(width/2, wordPos, width-width/4-40, listPos+40);
89+
arrow(width-width/4-40, listPos+40, width/2, wordPos-10);
9090
break;
9191
}
9292
}

0 commit comments

Comments
 (0)