100%
Pos: (0, 0)
Heading: 0°
Pen: DOWN
Lines: 0
🐢 TurtleLab
Animation Speed: Slow
10 ops/sec
📚 Command Reference
Up to 5 nested REP
| Command | Description & Example |
|---|---|
FW <dist> |
Move forward dist units. At the default view, 1 unit = 20 pixels. E.g. FW 10 |
RT <deg> |
Turn right (clockwise) deg°. E.g. RT 90 |
LT <deg> |
Turn left (counterclockwise) deg°. E.g. LT 45 |
PU |
Pen Up: moves without drawing lines. |
PD |
Pen Down: drawing lines enabled (default). |
REP <n> [ ] |
Repeat block n times. Nested up to 5 levels. E.g. REP 4 [ FW 8 RT 90 ] |
CS / CLEAR |
Clear drawing canvas screen. |
HOME |
Reset turtle position to center (0,0) & heading 0°. |
COLOR <val> |
Set pen color (e.g. COLOR #38bdf8, COLOR red) |
WIDTH <n> |
Set pen line thickness in screen pixels. E.g. WIDTH 3 |
💡 Tip: Mouse scroll zooms in/out at pointer. Click and drag drawing window to pan. Comments starting with
# or // are supported.