No cache version.
Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.
ps_shading
(PECL ps >= 1.3.0)
ps_shading — Creates a shading for later use
Description
$psdoc
, string $type
, float $x0
, float $y0
, float $x1
, float $y1
, float $c1
, float $c2
, float $c3
, float $c4
, string $optlist
) : intCreates 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
-
psdoc
-
Resource identifier of the postscript file as returned by ps_new().
-
type
-
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
c1
toc4
(see ps_setcolor() for their meaning). -
x0, x1, y0, y1
-
The coordinates
x0
,y0
,x1
,y1
are the start and end point of the shading. If the type of shading is radial the two points are the middle points of a starting and ending circle. -
c1, c2, c3, c4
-
See ps_setcolor() for their meaning.
-
optlist
-
If the shading is of type radial the
optlist
must also contain the parameters r0 and r1 with the radius of the start and end circle.
See Also
- ps_shading_pattern() - Creates a pattern based on a shading
- ps_shfill() - Fills an area with a shading
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-ps-shading.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.