1 #include "mandelfpga.c"
4 // w t f, the data is inverted somehow :psyduck:
9 for (y=MANDELFPGA_HEIGHT-1; y >= 0; y--)
11 for (x = MANDELFPGA_WIDTH; x < 128; x++)
12 printf("00\n"); // XST can't take don't cares there. sad face
13 for (x=MANDELFPGA_WIDTH-1; x >= 0; x--)
15 unsigned char *p = &MANDELFPGA_PIXEL_DATA[MANDELFPGA_BYTES_PER_PIXEL*(MANDELFPGA_WIDTH*y+x)];
16 if (p[0] == 0 && p[1] == 0 && p[2] == 0)
18 else if (p[0] == 255 && p[1] == 0 && p[2] == 0)
20 else if (p[0] == 0 && p[1] == 255 && ((p[2] == 0) || (p[2] == 36)))
22 else if (p[0] == 255 && p[1] == 255 && p[2] == 255)
25 fprintf(stderr, "o shi, what is %d %d %d\n", p[0], p[1], p[2]);