+
+ w = new DrawingWindow("Test!", 800, 600);
+
+ w.setBgColor("red");
+ w.setColor("blue");
+ for (int i = 0; i < 10; i++) {
+ w.clearGraph();
+ for (int y = 0; y < w.height; y++) {
+ for (int x = 0; x < w.width; x++) {
+ w.drawPoint(x, y);
+ }
+ }
+ }
+ w.setColor("white");
+ for (int i = 0; i < 10; i++) {
+ w.clearGraph();
+ for (int y = 0; y < w.height; y++) {
+ for (int x = 0; x < w.width; x++) {
+ w.drawPoint(x, y);
+ }
+ w.sync();
+ }
+ }
+ w.closeGraph();