ps_shading
(PECL ps >= 1.3.0)
Creates a shading for later use
Description
Creates a shading, which can be used by ps_shfill() or ps_shading_pattern().
The color of the shading can be in any color space except for pattern.
Parameters
psdocResource identifier of the postscript file as returned by
ps_new().typeThe type of shading can be either
radialoraxial. Each shading starts with the current fill color and ends with the given color values passed in the parametersc1toc4(seeps_setcolor()for their meaning).x0, x1, y0, y1The coordinates
x0,y0,x1,y1are the start and end point of the shading. If the type of shading isradialthe two points are the middle points of a starting and ending circle.c1, c2, c3, c4See
ps_setcolor()for their meaning.optlistIf the shading is of type
radialtheoptlistmust also contain the parametersr0andr1with the radius of the start and end circle.
Return Values
Returns the identifier of the pattern Falseforfailure.