rocinantealpha

reference / the turtle

turtle

The turtle of the window the code runs in: a record with pos (where it is), angle (degrees clockwise from up) and down (true while its pen is down).

repeat 6 [  forward 40  right 60  circle at turtle.pos radius 4 fill red]
what it draws: the whole window, 400 by 300
What the example of turtle draws

What it is

A record, read anywhere in a sketch, never set.

Related