Example 12.3: Blink

It is also possible to clear a rectangle that you've drawn. The syntax is exactly what you'd expect, g.clearRect(int left, int top, int width, int height). Program 12.3 uses clearRect to blink a rectangle on the screen.

The source code


Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
This Chapter
Examples
Home