Copyright © University of Cambridge. All rights reserved.

'First Forward Into Logo 2: Polygons' printed from http://nrich.maths.org/

Show menu

First Forward Into Logo
PreviousFF1

 

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:

FD forward
BK backward
LT left
RT right
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!

Next: FF3