Drawing in color
Page 5Why does the turtle only draw with a black pen? Always drawing with the same color is boring. That's why he has more than one pen. He has 16 pens, all in different colors! He has numbered them 0 to 15. These are the colors of the pens:
Why does the turtle call the first pen number 0 and not number 1? He just likes to start counting at 0. He's a little strange that way, but he has his reasons.
Now let's change pen. Tell the turtle SETPC and then a number between 0 and 15. For example, if we write:
FD 100
RT 90
SETPC 4
FD 100
RT 90
SETPC 1
FD 100
RT 90
SETPC 12
FD 100
RT 90
Then he draws this:
Now you can draw in color too! You can draw green grass. And blue water. And other colored things. Think of something in color that you like. Then try to draw it.
These are all the words we have learnt now. SETPC is new:
| Logo word | What it means |
|---|---|
| FD 100 | Walk forward 100 steps |
| BK 100 | Walk backward 100 steps |
| LT 90 | Turn left (good for drawing squares) |
| RT 90 | Turn right (good for drawing squares) |
| LT 120 | Turn left (good for drawing triangles) |
| RT 120 | Turn right (good for drawing triangles) |
| CS | Remove everything you have drawn |
| HOME | Move back to the starting point (and draw a line) |
| PU | Lift the pen so you won't draw when you walk |
| PD | Put the pen towards the screen again | REPEAT 10 [ ] | Repeat what's in the box 10 times |
| SETPC 4 | Change the pen to pen number 4 |
Turn page, or back to the table of contents.