1. pen_clear

mblock_block_1626422058724.png

Erases all pen marks and stamps from the stage

Example

When you click the green flag, all pen marks and stamps are erased from the stage.
Pen - 图3


2. pen_stamp

mblock_block_1626422071660.png

Stamps the sprite’s image onto the stage

How to use

A stamp is only a temporary image of the sprite that is drawn on the stage. It can be deleted using the erase all block.
A stamp can’t move.

Example

When you click the green flag, the sprite’s image is stamped onto the stage.

Pen - 图5

Pen - 图6


3. pen_penDown

mblock_block_1626422096616.png

Puts down the pen to start the drawing of the sprite

How to use

The pen down block is used to set the initial point where drawing begins.
Tip: use the hide block to hide the sprite from the stage, and then you can view the drawing without being blocked.

Steps to use the pen:
1. Initialization: clear the stage, set the pen color, and so on.
2. Put down the pen.
3. Move the sprite.
4. Pull up the pen.

Example

When you click the green flag, the sprite draws a line.
Pen - 图8


4. pen_penUp

mblock_block_1626422113440.png

Pulls up the pen to end the drawing of the sprite

How to use

The pen up block is used to end the drawing of the sprite.

Steps to use the pen:
1. Initialization: clear the stage, set the pen color, and so on.
2. Put down the pen.
3. Move the sprite.
4. Pull up the pen.

Example

When you click the green flag, the sprite draws a line.
Pen - 图10


5. pen_setPenColorToColor

mblock_block_1626422139413.png

Sets the pen color

How to use

Click to set the pen color or pick the color from the sprite or backdrop by using the color picker.
Pen - 图12

Example

When you click the green flag, the sprite draws a green line.
Pen - 图13


6. pen_changePenColorParamBy

mblock_block_1626422198863.png

Changes the pen color, saturation, brightness or transparency by the specified value, a negative number indicates decreasing

How to use

Value range of color, saturation, brightness or transparency: 0–100

Example

When you click the green flag, the sprite draws a colorful line.
Pen - 图15


7. pen_setPenColorParamTo

mblock_block_1626422212976.png

Sets the pen color, saturation, brightness or transparency to a specified value (0–100)

Example

When you click the green flag, the pen color is set to 50, and then the sprite draws a square.
Pen - 图17


8. pen_changePenSizeBy

mblock_block_1626422227302.png

Changes the pen size by the specified value, a negative number indicates decreasing

How to use

When you click the green flag, the sprite draws a line that gradually thickens.
Pen - 图19


9. pen_setPenSizeTo

mblock_block_1626422240370.png

Sets the pen size to a specified value (0–100)

Example

When you click the green flag, the pen size is set to 5, and then the sprite draws a square.
Pen - 图21