#include #include "bmp2txt.h" /* Generate a grayscale palette */ void generate_palette(PALETTE pal) { int i; for (i = 0; i < 256; i++) pal[i].r = pal[i].g = pal[i].b = 63 - i / 4; }