compute the colors