PS_SETCOLOR(3) | Library Functions Manual | PS_SETCOLOR(3) |
NAME¶
PS_setcolor — Sets current colorSYNOPSIS¶
#include <pslib.h>void PS_setcolor(PSDoc *psdoc, const char *type, const char *colorspace, float c1, float c2, float c3, float c4)
DESCRIPTION¶
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 colorspace is 'pattern' then c1 must contain the pattern id as returned by PS_begin_pattern(3). If colorspace is 'spot' then the c1 must contain the spot color id as returned by PS_makespotcolor(3) and the c2 must contain the tint value for the color.The parameter type can be 'fillstroke', 'fill', or 'stroke'.