PHP.nl

ps_shading

ps_shading

Creates a shading for later use

 **ps_shading** resource $psdoc string $type float $x0 float $y0 float $x1 float $y1 float $c1 float $c2 float $c3 float $c4 string $optlist

Creates a shading, which can be used by or . ps_shfill``ps_shading_pattern

The color of the shading can be in any color space except for . pattern

psdoc Resource identifier of the postscript file as returned by . ps_new

type The type of shading can be either or . Each shading starts with the current fill color and ends with the given color values passed in the parameters to (see for their meaning). radial``axial``c1``c4``ps_setcolor

x0, x1, y0, y1 The coordinates , , , are the start and end point of the shading. If the type of shading is the two points are the middle points of a starting and ending circle. x0``y0``x1``y1``radial

c1, c2, c3, c4 See for their meaning. ps_setcolor

optlist If the shading is of type the must also contain the parameters and with the radius of the start and end circle. radial``optlist``r0``r1

Returns the identifier of the pattern return.falseforfailure.

ps_shading_pattern``ps_shfill