Basic moves and turns:
Forwards fd 40
Backwards bk 30
Turn right rt 90
Turn left lt 90 (letter l and letter t, not 1t)
reset = clears the screen and starts you in the middle (good for the start of the program)
setpensize 5 = change the pen width (all one word with no gaps)
colour “blue = change the pen colour (must use speech marks at the beginning of the colour) A full list of colours can be found here
To fill an area = fills the area that the arrow is in. If you want to fill inside a shape, you will have to move inside it then use fill.
- colour “red
- fill
** You could set up a little fillit procedure that moves inside the shape, fills and moves back again…
- TO fillit
- pu
- rt 45
- fd 2
- fill
- bk 2
- lt 45
- pd
- END
Notice this procedure moves up and right a little bit so you need to make sure you are in the right place when you call the Fill procedure.
setxy 100 -200 = moves the arrow to a place on the screen. If you don’t want it to draw a line there, use pu first! 0 0 is the middle of the screen – the first number is left and right; the second number is up and down. You can experiment to find out the rest!