Page 74 - Dig_CodeAI_V2.1_Class_5
P. 74
Clicking on block creates a duplicate of the current Sprite. The image is stamped
on the stage. To see the image, click on the Sprite and drag. A duplicate of the Sprite
appears behind it.
The Sprite draws a non-stop line wherever it moves using .
block puts the pen up and stops the Sprite from drawing anything.
Use block to set the colour of the pen to a colour of your choice from the
drop-down menu.
block changes the pen colour, saturation, brightness and transparency.
Click on the first text box to select and change the pen effects. Click on the second text
box to give a value by which the effect will change.
block will set the pen colour, saturation, brightness and transparency to
the given value.
Using block, you can dynamically change the pen stroke's size while your
program executes.
block sets the Pen Size to the given number.
The color picker tool can help you choose any color you want from the
stage area.
Drawing a Line in Scratch
Let us learn how to draw a line in Scratch. To draw a line in Scratch, do the given coding:
The line appears on the stage.
72 DigiCode AI (Ver. 2.1)-V

