1 2 3 4 5 6 7 8 9 10 11 12
#include <stdio.h> #define sear_width 16 #define sear_height 16 static unsigned char sear_bits[] = { 0x00, 0x00, 0x0c, 0x07, 0x92, 0x08, 0x44, 0x10, 0x29, 0x24, 0x26, 0x28, 0x20, 0x24, 0x40, 0x10, 0xc0, 0x08, 0x60, 0x07, 0x30, 0x00, 0x18, 0x30, 0x0c, 0x08, 0x06, 0x08, 0x00, 0x32, 0x00, 0x00}; int main (void) { printf("P5 16 16 1\n"); for (unsigned i = 0; i < sizeof(sear_bits)*8; i++) putchar(sear_bits[i/8] & 1 << i % 8 ? 0 : 1); }