コード例 #1
0
 private void makeSlowTurtle() {
   Turtle slowTurtle = new Turtle();
   mtw.addAndShowTurtle(slowTurtle);
   slowTurtle.drawTriangle(-50);
 }
コード例 #2
0
 private void makeSpeedyTurtle() {
   Turtle speedyTurtle = new Turtle();
   mtw.addAndShowTurtle(speedyTurtle);
   speedyTurtle.setSpeed(10);
   speedyTurtle.drawTriangle(100);
 }
コード例 #3
0
 private void makeCrazyTurtle() {
   Turtle CrazyTurtle = new Turtle();
   mtw.addAndShowTurtle(CrazyTurtle);
   CrazyTurtle.drawLightning(55);
 }