Control Programming : Number One Example

This program could be used to draw a number one :

PENDOWN
FORWARD 60
LEFT 135
FORWARD 10
PENUP

The turtle moves forward 60 steps to draw the stick part of the one. It then turns left 135 degrees before moving forward 10 steps to draw the line at the top of the one.

The number one looks like this :

The large triangle shows the position of the turtle and the direction it is facing.

GCSE ICT Companion 04 - (C) P Meakin 2004