David W. answered 06/26/15
Tutor
4.7
(90)
Experienced Prof
Each Object (a hexagon, a star, a square, etc.) starts at the current point. After moving to a new starting point, a new object is created by a call to the method that plots it (note: parameters for the number of sides and the length of a side all that is required).
Any regular n-sided polygon has an interesting fact: the sum of the external angles = 360 degrees
In the 1960's, Seymour Papert (MIT) created "Tuttle Graphics" to teach geometry to kids. The robot turtle could draw a line, turn left a calculated amount, move forward, turn left again, ... and when it got back to the starting point and turned left, it had turned a full 360 degrees left!
So, for a triangle, turn left 120 degrees (outside 3 angles are 120 degrees, so inside angle is 60 degrees); for a square, turn left 90 degrees; for a hexagon, turn left 60 degrees (this is 360/N). Now, how would you make a star??
In Scratch, you pass the angle and side length as parameters to the once-written code to draw a shape. It takes it from there. Also, you don't have to turn left a fixed angle, and you don't have to have the same length side -- wonderful spiral shapes appear.