New color algorithm.