November 21, 1996; Ralph E. Griswold
Requires: Version 9 graphics
This file is in the public domain.
Pressing the left mouse button draws a point. Dragging with the left mouse
button draws a line. Pressing and dragging with the middle mouse
shows a dashed straight line, which is drawn solid when
the middle mouse button is released. Dragging with the right mouse
button erases in the vicinity of the mouse pointer.
There are several known bugs:
Erasing in restricted mode is bogus outside the generating region.
Perfectly vertical and horizontal straight lines are not clipped.
Some legal straight lines are not drawn.
In other words, the clipping logic is not correct.
Source code |
Program Library Page |
Icon Home Page