Implement coloring.