PS_setcolor man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

PS_SETCOLOR(3)							PS_SETCOLOR(3)

	     uwe@steinmann.cx
       UWE STEINMANN 2003Uwe SteinmannApril 28, 2003;

NAME
       PS_setcolor — Sets current color

SYNOPSIS
       #include <pslib.h>

       void  PS_setcolor(PSDoc	*psdoc,	 const	char  *type,  const char *col‐
       orspace, 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		  col‐
       orspace	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) uti‐
       lizes 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)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net