flatten colors