.TH "PS_SETCOLOR" "3" .SH "NAME" PS_setcolor \(em Sets current color .SH "SYNOPSIS" .PP #include .PP void PS_setcolor(PSDoc *psdoc, const char *type, const char *colorspace, float c1, float c2, float c3, float c4) .SH "DESCRIPTION" .PP Sets the color for drawing, filling, or both. The colorspace should be one of 'gray', 'spot', 'rgb, 'cmyk', or 'pattern'. Depending on the colorspace either only the first, the first two, the first three all or remaining parameters will be used. If \fBcolorspace\fR is 'pattern' then \fBc1\fR must contain the pattern id as returned by \fBPS_begin_pattern(3)\fP. If \fBcolorspace\fR is 'spot' then the \fBc1\fR must contain the spot color id as returned by \fBPS_makespotcolor(3)\fP and the \fBc2\fR must contain the tint value for the color. .PP The parameter \fBtype\fR can be 'fillstroke', 'fill', or 'stroke'. .SH "BUGS" .PP The second parameter is currently not in any case evaluated. The color is always set for filling and drawing just as if 'both' where passed. If you want to set the color to define a spot color from it, you will have to pass 'both' or 'fill', because \fBPS_makespotcolor(3)\fP utilizes the current fill color. .SH "SEE ALSO" .PP PS_begin_pattern(3) .SH "AUTHOR" .PP This manual page was written by Uwe Steinmann uwe@steinmann.cx. .\" created by instant / docbook-to-man