Virtual Pen

Block Coding Interpreter — CEIE 2026
Starts at center · Facing RIGHT / East (0°)
Code
X: 0
Y: 0
Angle:
Steps: 0

Pen State

Position Xcenter
Position Ycenter
Direction0° (East →)

Recipes Defined

None yet

Commands

go-forward(distance) Move pen forward in current direction
turn-right(angle) Rotate clockwise by angle degrees
turn-left(angle) Rotate counter-clockwise by angle degrees
repeat(n) times: Repeat indented block n times
create-recipe called [name]: Define a named recipe (like a function)
use-recipe [name] Execute a previously created recipe
pen-up Lift pen — move without drawing
pen-down Lower pen — resume drawing

Orientation

270°
0° (Start)
90°
180°
turn-right adds · turn-left subtracts
Speed 5
Output Log
Ready. Type code and press Run.