Sets the color for drawing, filling, or both.
Resource identifier of the postscript file as returned by ps_new().
The parameter type
can be both, fill, or fillstroke.
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.
Depending on the colorspace this is either the red component (rgb), the cyan component (cmyk), the gray value (gray), the identifier of the spot color or the identifier of the pattern.
Depending on the colorspace this is either the green component (rgb), the magenta component (cmyk).
Depending on the colorspace this is either the blue component (rgb), the yellow component (cmyk).
This must only be set in cmyk colorspace and specifies the black component.
Returns TRUE
on success or FALSE
on failure.
Please login to continue.