1 #include "mandelfpga.c"
8 for (y=0; y < MANDELFPGA_HEIGHT; y++)
11 for (x=0; x < MANDELFPGA_WIDTH; x++)
13 unsigned char *p = &MANDELFPGA_PIXEL_DATA[MANDELFPGA_BYTES_PER_PIXEL*(MANDELFPGA_WIDTH*y+x)];
14 if (p[0] == 0 && p[1] == 0 && p[2] == 0)
16 else if (p[0] == 255 && p[1] == 0 && p[2] == 0)
18 else if (p[0] == 0 && p[1] == 255 && ((p[2] == 0) || (p[2] == 36)))
20 else if (p[0] == 255 && p[1] == 255 && p[2] == 255)
23 fprintf(stderr, "o shi, what is %d %d %d\n", p[0], p[1], p[2]);
26 printf("00\n"); // XST can't take don't cares there. sad face