FADE_LEVELS
static int fading = TRUE, brightness = FADE_LEVELS;
if (brightness == FADE_LEVELS) {
tpal[i] = pal[i] * brightness / FADE_LEVELS;