#include "paint.h" static uchar p1bits[] = { 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, }; static Bitmap p1 = { 2, 4, GREY8, p1bits, }; static uchar p2bits[] = { 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, }; static Bitmap p2 = { 4, 4, GREY8, p2bits, }; static uchar p3bits[] = { 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, }; static Bitmap p3 = { 3, 4, GREY8, p3bits, }; static uchar p4bits[] = { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, }; static Bitmap p4 = { 2, 4, GREY8, p4bits, }; static uchar p5bits[] = { 0xFF, }; static Bitmap p5 = { 1, 1, GREY8, p5bits, }; Bitmap *patternbitmaps[] = { &p1, &p2, &p3, &p4, &p5, }; npatterns = nelem(patternbitmaps);