to regPolygon :sides :length
;repeat by the # of sides
repeat :sides[
;ie 360 / 4 is 90, so rt 90. 360 / 3 is 120, so rt 120.
rt 360 / :sides
;a move function that makes the size of each shape roughly the same.
fw :length / :sides * 4
]
end
;the first variable is the number of sides; the second is the length of each.
regPolygon 10 100