The following example draws a box:
begin box #draw face 1 move 0 0 0 line .1 0 0 line .1 .2 0 line 0 .2 0 line 0 0 0 # draw face 2 move 0 0 .5 line .1 0 .5 line .1 .2 .5 line 0 .2 .5 line 0 0 .5 # draw the connecting lines move .0 0 0 rline 0 0 .5 move .1 0 0 rline 0 0 .5 move .1 .2 0 rline 0 0 .5 move .0 .2 0 rline 0 0 .5 end_object display box # display it
Everything to be plotted must belong to an object, and objects must be
displayed to be visible. In the example above, the box is plotted in the
default window and viewport.