Skip to content

Commit

Permalink
update knotted ring numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnlangit committed Aug 16, 2018
1 parent 39e1450 commit ad77d59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ public static void main(String[] args)
// Make the tortoise move as fast as possible --#4
Tortoise.setSpeed(10);
createColorPalette();
// Do the following 30 times --#10.1
// Do the following 30 times --#9.1
for (int i = 0; i < 30; i++)
{
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
Tortoise.setPenColor(ColorWheel.getNextColor());
// drawOctagonWithOverlap (recipe below) --#8.0
// drawOctagonWithOverlap (recipe below) --#7.0
drawOctagonWithOverlap();
// Turn the tortoise 1/30th of 360 degrees to the right --#9
// Turn the tortoise 1/30th of 360 degrees to the right --#8
Tortoise.turn(360.0 / 30);
// Turn the tortoise 5 more degrees to the right --#11
// Turn the tortoise 5 more degrees to the right --#10
Tortoise.turn(5);
// End Repeat --#10
// End Repeat --#9.2
}
}
private static void createColorPalette()
Expand All @@ -39,7 +39,7 @@ private static void createColorPalette()
}
private static void drawOctagonWithOverlap()
{
// ------------- Recipe for drawOctagonWithOverlap --#7.1
// ------------- Recipe for drawOctagonWithOverlap --#6.1
// Do the following 8 + 1 times --#3.1
for (int i = 0; i < 9; i++)
{
Expand All @@ -49,6 +49,6 @@ private static void drawOctagonWithOverlap()
Tortoise.turn(360.0 / 8);
}
// End Repeat --#3.2
// ------------- End of drawOctagonWithOverlap recipe --#7.2
// ------------- End of drawOctagonWithOverlap recipe --#6.2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ public static void main(String[] args)
Tortoise.show();
// Make the tortoise move as fast as possible --#4
createColorPalette();
// Do the following 30 times --#10.1
// Do the following 30 times --#9.1
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
// drawOctagonWithOverlap (recipe below) --#8.0
// ------------- Recipe for drawOctagonWithOverlap --#7.1
// drawOctagonWithOverlap (recipe below) --#7.0
// ------------- Recipe for drawOctagonWithOverlap --#6.1
// Do the following 8 + 1 times --#3.1
// Move the tortoise 110 pixels --#1
// Turn the tortoise 1/8th of 360 degrees to the right --#2
// End Repeat --#3.2
// ------------- End of drawOctagonWithOverlap recipe --#7.2
// Turn the tortoise 1/30th of 360 degrees to the right --#9
// Turn the tortoise 5 more degrees to the right --#11
// End Repeat --#10.2
// ------------- End of drawOctagonWithOverlap recipe --#6.2
// Turn the tortoise 1/30th of 360 degrees to the right --#8
// Turn the tortoise 5 more degrees to the right --#10
// End Repeat --#9.2
}
private static void createColorPalette()
{
Expand Down

0 comments on commit ad77d59

Please sign in to comment.