New color algorithm