TCPDF::StarPolygon( $x0, $y0, $r, $nv, $ng, $angle, $draw_circle = false, $style = '', $line_style = array(), $fill_color = array(), $circle_style = '', $circle_outLine_style = array(), $circle_fill_color = array() )
Draws a star polygon
Description Description
Parameters Parameters
- $x0
-
(Required) (float) Abscissa of center point.
- $y0
-
(Required) (float) Ordinate of center point.
- $r
-
(Required) (float) Radius of inscribed circle.
- $nv
-
(Required) (integer) Number of vertices.
- $ng
-
(Required) (integer) Number of gap (if ($ng % $nv = 1) then is a regular polygon).
- $angle:
-
(Required) (float) Angle oriented (anti-clockwise). Default value: 0.
- $draw_circle:
-
(Required) (boolean) Draw inscribed circle or not. Default value is false.
- $style
-
(Optional) (string) Style of rendering. See the getPathPaintOperator() function for more information.
Default value: ''
- $line_style
-
(Optional) (array) Line style of polygon sides. Array with keys among the following: <ul> <li>all: Line style of all sides. Array like for SetLineStyle().</li> <li>0 to (n - 1): Line style of each side. Array like for SetLineStyle().</li> </ul> If a key is not present or is null, not draws the side. Default value is default line style (empty array).
Default value: array()
- $fill_color
-
(Optional) (array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
Default value: array()
- $circle_style
-
(Optional) (string) Style of rendering of inscribed circle (if draws). Possible values are: <ul> <li>D or empty string: Draw (default).</li> <li>F: Fill.</li> <li>DF or FD: Draw and fill.</li> <li>CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).</li> <li>CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).</li> </ul>
Default value: ''
- $circle_outLine_style
-
(Optional) (array) Line style of inscribed circle (if draws). Array like for SetLineStyle(). Default value: default line style (empty array).
Default value: array()
- $circle_fill_color
-
(Optional) (array) Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
Default value: array()
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
2.1.000 | Introduced. |