package org.teachingkidsprogramming.section02methods; @SuppressWarnings("unused") public class TriangleShell { private static int length = 1; public static void main(String[] args) { // Show the tortoise --#1 // Make the tortoise go as fast as possible --#6 // Do the following 60 times --#7.1 // Change the pen color of the line the tortoise draws to a random color --#9 // Increase the current length of the side by 4 pixels --#8 // drawTriangle (recipe below) --#5.1 // // ------------- Recipe for drawTriangle --#5.2 // Do the following 3 times --#3.1 // Move the tortoise using the current length --#4 // Turn the tortoise 1/3rd of 360 degrees --#2 // End Repeat --#3.2 // ------------- End of drawTriangle recipe --#5.3 // // Turn the tortoise 1/60th of 360 degrees to the right --#10 // End Repeat --#7.2 } }