set the color attribute