Usage of each block

日本語のページ

Initialize Turtle

Initialize turtle

Initialize Turtle Graphics.
Specify the size and position of the Turtle Graphics window.

Set Color

Set color

Set the pen color and fill color.

Pen down

Pen down

Put the pen down to start drawing.
Lines and other objects will be drawn wherever the turtle moves before you lift the pen.

Pen up

Pen up

Lift the pen.
No lines will be drawn even if the turtle moves until you next put the pen down.

Pen Thickness

Set pen thickness

Sets the pen thickness.

Move Forward

Move forward

Moves the turtle forward the specified number of pixels.

Move Backward

Move backward

Moves the turtle backward the specified number of pixels.

Go to a specified position

Go to specified position

Moves the turtle to a specified position.

Turn right

Turns the turtle to the right by the specified angle.

Rotate Left

Turn left

Turns the turtle to the left by the specified angle.

Set Heading

Set heading

Sets the turtle's heading to the specified angle.
Angles are measured counterclockwise, with 0 degrees pointing right.

Draw a Dot

Draw dot

Draws a dot of the specified size at the turtle's position.

Draw an Arc

Draw arc

Draws an arc starting from the current turtle position.
Specifying a positive angle will draw a counterclockwise arc.
Conversely, specifying a negative angle will draw a clockwise arc.

Draw Stamp

Draw stamp

Draws a turtle-shaped stamp at the current turtle position.

Select Turtle Shape

Select shape

Selects the turtle shape.

Draw Text

Draw text

Draws the specified text at the turtle's position.
The "Alignment" parameter allows you to select the text alignment from left, center, or right based on the turtle's position.
Checking the "Move" checkbox moves the turtle to the bottom right position of the last character.
Note that the text is drawn to the right regardless of the turtle's orientation.

Begin filling

Begin filling

Fill the interior of the shape you will draw next.
The fill color is specified in the Color specification block.

End filling

End filling

Finish filling the interior of the shape.

Set Speed

Set speed

Set the turtle's speed using a value between 0 and 10.
If you specify a value between 1 and 10, values ​​closer to 1 will be slower, while values ​​closer to 10 will be faster.
Also, specifying 0 will set the speed to maximum speed, and the turtle's movement will not be displayed.

Reset

Reset turtle

Resets the drawing.
Clears all drawings and moves the turtle to the center of the window. It also faces right.

Show/Hide Turtle

Show turtle

Toggles the turtle's visibility.

Update Drawing

Update drawing

Updates the turtle drawing.
If you are performing other time-consuming processing between drawings, inserting a update drawing block in the middle will prevent the Turtle Graphics window from freezing.

End Drawing

End drawing

If no further processing is required after all Turtle Graphics drawing has finished, insert this block.
Without this block, the Turtle Graphics window will freeze.

Get X Coordinate

Get x position

Gets the turtle's X coordinate.

Get Y Coordinate

Get y position

Gets the turtle's Y coordinate.

Get Heading

Get heading

Gets the turtle's heading.

Get Pen State

Get pen status

Gets the pen state.
If the pen is down, this is true; if it is up, this is false.