|
This little Applet currently lets you draw lines, Rectangles and Squares by clicking the mouse on two points. The Circle, Oval and Triangle draw their respective shapes randomly. Up to 100 shapes can be held, after which the "oldest" is destroyed in order to accommodate the "newest". The Panic button deletes the last shape drawn. Both the colour and shape persist until another is chosen. Black is the default colour and line is the default shape. This is all hand crafted Java, not done with some "Visual" frontend. It uses a polymorphic array to store the heterogeneous collection of shapes.
|