Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_setcolor(3) [php man page]

PS_SETCOLOR(3)								 1							    PS_SETCOLOR(3)

ps_setcolor - Sets current color

SYNOPSIS
bool ps_setcolor (resource $psdoc, string $type, string $colorspace, float $c1, float $c2, float $c3, float $c4) DESCRIPTION
Sets the color for drawing, filling, or both. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $type - The parameter $type can be both, fill, or fillstroke. o $colorspace - 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. o $c1 - Depending on the colorspace this is either the red component (rgb), the cyan component (cmyk), the gray value (gray), the iden- tifier of the spot color or the identifier of the pattern. o $c2 - Depending on the colorspace this is either the green component (rgb), the magenta component (cmyk). o $c3 - Depending on the colorspace this is either the blue component (rgb), the yellow component (cmyk). o $c4 - This must only be set in cmyk colorspace and specifies the black component. BUGS
The second parameter is currently not always evaluated. The color is sometimes set for filling and drawing just as if fillstroke were passed. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group PS_SETCOLOR(3)

Check Out this Related Man Page

PS_SETCOLOR(3)						     Library Functions Manual						    PS_SETCOLOR(3)

NAME
PS_setcolor -- Sets current color SYNOPSIS
#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'. BUGS
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 PS_makespotcolor(3) utilizes the current fill color. SEE ALSO
PS_begin_pattern(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PS_SETCOLOR(3)
Man Page