.TH "PS_SHADING" "3" .SH "NAME" PS_shading \(em Create shading .SH "SYNOPSIS" .PP #include .PP int PS_shading(PSDoc *psdoc, const char *shtype, float x0, float y0, float x1, float y1, float c1, float c2, float c3, float c4, const char *optlist) .SH "DESCRIPTION" .PP This function creates a shading which can be used by \fBPS_shfill(3)\fP or \fBPS_shading_pattern(3)\fP. The type of shading can be either `radial' or `axial'. Each shading starts with the current fill color and ends with the given color values passed in the parameters \fBc1\fR to \fBc4\fR (see \fBPS_setcolor(3)\fP for their meaning). The coordinates \fBx0\fR, \fBy0\fR, \fBx1\fR, \fBy1\fR are the start and end point of the shading. If the shading is of type `radial' the option list must also contain the parameters r0 and r1 with the radius of the start and end circle. .PP The color of the shading can be in any color space except for `pattern'. .SH "RETURN VALUE" .PP Returns the identifier of the shading or zero in case of an error. The identifier is a positiv number. .SH "SEE ALSO" .PP PS_shfill(3), PS_shading_pattern(3) .SH "AUTHOR" .PP This manual page was written by Uwe Steinmann uwe@steinmann.cx. .\" created by instant / docbook-to-man