Sets the color for drawing, filling, or both. The colorspace should be one of 'gray', 'rgb, 'cmyk', 'spot', 'pattern'. Depending on the colorspace either only the first, the first three or all parameters will be used.
The parameter type can be 'both', 'fill', or 'fillstroke'.