Skip to content

Commit

Permalink
Change arrow direction in loop animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ewinge committed Sep 8, 2024
1 parent 90a8747 commit 69bd67b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions images/loop/loop.pde
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ private void drawFigure() {
textbox("".equals(word) ? "" : "'"+word+"'", "word", width/2, wordPos);
switch (count) {
case 1:
arrow(width/2, wordPos, width/4+40, listPos+40);
arrow(width/4+40, listPos+40, width/2, wordPos-10);
break;
case 2:
arrow(width/2, wordPos, width/2, listPos+40);
arrow(width/2, listPos+40, width/2, wordPos-10);
break;
case 3:
arrow(width/2, wordPos, width-width/4-40, listPos+40);
arrow(width-width/4-40, listPos+40, width/2, wordPos-10);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ private void drawFigure() {
textbox("".equals(word) ? "" : "'"+word+"'", "word", width/2, wordPos);
switch (count) {
case 1:
arrow(width/2, wordPos, width/4+40, listPos+40);
arrow(width/4+40, listPos+40, width/2, wordPos-10);
break;
case 2:
arrow(width/2, wordPos, width/2, listPos+40);
arrow(width/2, listPos+40, width/2, wordPos-10);
break;
case 3:
arrow(width/2, wordPos, width-width/4-40, listPos+40);
arrow(width-width/4-40, listPos+40, width/2, wordPos-10);
break;
}
}
Expand Down

0 comments on commit 69bd67b

Please sign in to comment.