Coding Sandbox

← Teacher Binder

Turtle graphics for Ontario Math Strand C3 (Coding). Sequence, repeat, conditional, and procedure constructs. Click palette buttons to insert commands, type freely, or load a preset. Hit Run.

Code

Move Pen
Control

Canvas

Reference
forward N / back N / right N / left N (N in pixels or degrees)
pen up / pen down / home / color red|blue|green|...
repeat N ... end  -  if x > 0 ... end  -  let x = 5
to name ... end defines a procedure; call it by its name.
Comments start with #. Use 2-space indent inside blocks.