update smooth color algorithm