Copyright © University of Cambridge. All rights reserved.
This article focuses on drawing regular polygons; equilateral triangles, squares, pentagons, hexagons etc. It's very easy. Here is a reminder of some of the PRIMITIVES (the commands) needed to start drawing:
PU pen up
PD pen down
HT hide turtle
ST show turtle
CS clear screen
CT clear text
Here is an example of the use of REPEAT. Try it!
REPEAT 5 [FD 30 RT 72]
Now try REPEAT 3 and REPEAT 4 etc and vary the distances and the angles.
Away you go!