Hardware Reference
In-Depth Information
FIGURE 4-4
Using variables instead of values in Scratch
Changing the Size and Colour of
the Pen
To make your drawings look more interesting, you can also change the colour of the
pen and the thickness of the line.
1.
Add the pen block
set pen colour to
to your pentagon script, after the
point in direction 90
block and before the
repeat
block.
2.
Click on the coloured square and use the eyedropper tool to select the shade you
want to use from the colour palette.
3.
You can also use the
set pen size to
block to change the thickness of the
line. he higher the value you set, the thicker the line will be. Add this block to
the script under the
set pen colour to
block and before the
repeat
block,
and change the thickness of the pen line used in the pentagon script to 5.
4.
Click the green lag to run the script. Figure 4-5 shows the results.