Pencil Code Reference > box

 

box draws a box under the turtle

box can make a square box in any color. It draws the box under the turtle.

box blue

Bigger Boxes

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

Other Shapes

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.