src/main/java/org/teachingkidsprogramming/recipes/completed/section04mastery/DigiFlower.java
private static void drawOctogon()
  {
    //     Do the following 8 times --#5.1
    for (int i = 0; i < 8; i++)
    {
      //     Change the pen color of the line the tortoise draws to the next color on the color wheel --#3
      Tortoise.setPenColor(ColorWheel.getNextColor());
      //     Move the tortoise 50 pixels --#2
      Tortoise.move(50);
      //     Turn the tortoise 1/8th of 360 degrees to the right --#4
      Tortoise.turn(360.0 / 8);
      //    End Repeat --#5.2 
    }
    //    ------------- End of drawOctogon recipe --#10.3
  }
private static void drawOctogon()
  {
    //     Do the following 8 times --#5.1
    for (int i = 0; i < 8; i++)
    {
      //     Change the pen color of the line the tortoise draws to the next color on the color wheel --#3
      Tortoise.setPenColor(ColorWheel.getNextColor());
      //     Move the tortoise 50 pixels --#2
      Tortoise.move(50);
      //     Turn the tortoise 1/8th of 360 degrees to the right --#4
      Tortoise.turn(360.0 / 8);
      //    End Repeat --#5.2 
    }
    //    ------------- End of drawOctogon recipe --#10.3
  }
private static void drawOctogon ( ) { //     Do the following 8 times --#5.1 for ( int i = 0 ; i < 8 ; i ++ ) { //     Change the pen color of the line the tortoise draws to the next color on the color wheel --#3 Tortoise . setPenColor ( ColorWheel . getNextColor ( ) ) ; //     Move the tortoise 50 pixels --#2 Tortoise . move ( 50 ) ; //     Turn the tortoise 1/8th of 360 degrees to the right --#4 Tortoise . turn ( 360.0 / 8 ) ; //    End Repeat --#5.2  } //    ------------- End of drawOctogon recipe --#10.3 }
------------- Recipe for DrawOctogon --#9.2
------------- Recipe for DrawOctogon -- #9 . 2