DownUp

Down and Up
The drawing pen is **Down** by default. Graphics are only drawn when the pen is down. The pen can be put **UP** or **Down** as desired. When the pen is up, the drawing cursor moves, but no visible drawing is made. This is useful in turtle graphics.

Syntax:
 * 1) handle DOWN - Set the drawing pen to down (this is the default)
 * 2) handle UP - Set the drawing pen to up (don't draw)

The following demo draws two boxes. Only the box drawn when the pen is down is visible.

code format="vbnet" 'create a graphic object graphic #g, 300, 300 'put the pen up
 * 1) g up

'place the drawing pen at 10,10 'draw a box
 * 1) g place(10,10)
 * 1) g box(290, 290)

'the previous box is not visible 'because the pen was UP

'put the pen down
 * 1) g down

'place the drawing pen at 50,20 'draw a box
 * 1) g place(50,20)
 * 1) g box(200, 220)

'the pen was down when the second box 'was drawn, so it is visible

'add graphic to web page render #g code