Pencil Code Reference > box
box
can make a square box in any color.
It draws the box under the turtle.
box blue
box
accepts an optional second argument, which is the side
length of the box in pixels. Remember that arguments need to be
separated by a comma.
box wheat, 100
Move the turtle using fd
to draw boxes in different places. Use dot
to draw a dot instead of a box. Other shapes can be drawn usingpen
.