Example 12.4: Mondrian

The next example is a small graphics applet that adds a little class to web pages. This applet is called Mondrian after the painter Piet Mondrian whose style it imitates. Mondrian randomly selects a series of rectangles to be painted on the screen. Each has a random position, width, height and color.

The source code

Copyright 1996 Elliotte Rusty Harold
This Chapter