Hardware Reference
In-Depth Information
FIGURE 4-5
Setting the colour and size of the pen in Scratch
Creating Spiral Patterns
Once you have mastered drawing a single shape, you can start to think of ways to
repeat the shape over and over to make a spiral pattern.
Add to the pentagon script a
repeat
control block and a
turn degrees
block, so
that it looks like Figure 4-6.
To make your spiral look more colourful, you can add the pen block
Change pen
shade by 10
underneath the motion block
turn 15 degrees
. his will change the
colour of the pen after each pentagon shape has been drawn. Figure 4-7 shows the
inal script and the result.