TPG_COLOR_RAMP
return TPG_COLOR_RAMP + ((x % tpg->src_width) * 256) / tpg->src_width;
} else if (k >= TPG_COLOR_RAMP) {
r = g = b = k - TPG_COLOR_RAMP;
TPG_COLOR_MAX = TPG_COLOR_RAMP + 256