Star Turtle Methods
/** * This method will draw a five pointed star */ public void drawFivePointedStar(int sideLength) { int angleOfPolygon = -144; int lengthOfSide = sideLength; int numSides = 5; for(int i = 0; i < numSides; i++) { paint (angleOfPolygon, lengthOfSide); } }//================================================ /** * This method will draw a six pointed star. */ public void drawSixPointedStar(int sideLength) { drawEquilateralTriangle(sideLength); move(180, sideLength); move(-90, .6*sideLength); move(90, 0); drawEquilateralTriangle(sideLength); }//===============================================