From Test-Scratch-Wiki
The Pen Extension is an extension in Scratch 3.0 that allows sprites to control their pens, as well as stamp themselves onto the stage and remove all pen marks. Before Scratch 3.0, these blocks were not an extension, and were located in a category called Pen Blocks.Template:Cite post To use them, they must be enabled in the "Extensions" section of the editor. Older blocks are kept but hidden.Template:Cite post There are 9 blocks. Pen blocks are useful when creating a one sprite one script project, allowing the following actions to happen:
- Stamp the sprite
- Put the pen down
- Release the pen
One example of a one sprite one script project is a simple drawing program. The pen extension can also used to make games and simulations, as well as other projects.
Blocks
![]() | Click on a block to learn more about it. |
Scratch 3.0 has the following 9 Pen Stack blocks:
stamp
erase all
pen down
pen up
set pen color to [#FFFFFF] // the color can be changed
set pen (color v) to ()
change pen (color v) by ()
set pen size to ()
change pen size by ()
In Scratch 2.0
![]() |
This article or section documents a feature not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
In Scratch 2.0, the Pen Extension was located in a block category called Pen. They were green-colored. The Erase All block was called "clear".
See Also
References