Mod the COLOR_TO_CODE generation