Implemented smooth coloring.