generate all color codes before doing any output