5.1.1 Drawing shapes
Pen block |
Description |
|
When used in a script, the sprite will produce a bitmap image of itself which is stamped onto the stage. Bitmap is a digital image composed of a matrix of dots. Like other Pen blocks, the Stamp block will not draw over sprites. |
|
The block removes all marks made by the pen or stamping. It is the only pen block that the Stage can use. |
|
The block will make its sprite continuously pen a trail wherever it moves, until the Pen Up block is used. The colour, size, and transparency of the trail can be changed with other blocks. |
|
If a sprite is currently using the pen because of the Pen Down block, the block will cause the sprite to stop drawing a trail. (Otherwise, it has no effect.) |
|
The block sets the pen's colour to the given colour, which can be selected by clicking on the input. |
|
This block sets the pen's colour, saturation, brightness, and transparency. The first value can be selected from "colour" (default), "saturation", "brightness", and "transparency". |
|
The block sets the pen’s colour at the certain value. |
|
The block changes the specified value by the number input. |
|
The block sets the pen's size to the given number. The pen draws a trail of circles. The diameter of the circle, in pixels, is equal to the pen size. |
Table 10: Pen block
Figure 133: Drawing a line
In the example above, we were testing if the pen really works. Since we are sure that it works, we can now go ahead and explore the other options that we have.