#include <acl.c> void aMain() { AWindow *win = aOpenWin(256, 256, "grd_xor", 1); int x, y; for (y = 0; y < 256; y++) { for (x = 0; x < 256; x++) aSetPix(win, x, y, (x ^ y) * 0x10101); } aWait(-1); }