Hardware Reference
In-Depth Information
6. Finally add the pen up block to end the line drawing. Figure 4-2 shows the
result.
7. Select File Save As to name and save your ile.
FIGURE 4-2 Using pen down and pen up to draw a line in Scratch
CHALLENGE
How could you add to the script to turn the turtle round and draw another line?
What does the pen up command do?
Drawing Simple Shapes
Now draw a pentagon using the script that you already created, by using the following
steps.
1. Add the motion block turn 15 degrees underneath the move 100 steps
block and change the value from 15 to 72.
2. So far, the script will have drawn only one side of the ive-sided pentagon shape.
You could add ive more move and turn blocks to the sequence, or you could
just add a loop to repeat, or iterate , the instruction ive times. Add the control
Search WWH ::




Custom Search