Minor simplification to the way colors are computed.