To view this content, you need to install Java from java.com

A beginning drawing:

Move cursor to draw lines.

Click and move to draw rectangles.

Press a key to stop drawing.

Source code: Line_draw

Built with Processing