TCPDF::RegularPolygon( $x0,  $y0,  $r,  $ns,  $angle,  $draw_circle = false,  $style = '',  $line_style = array(),  $fill_color = array(),  $circle_style = '',  $circle_outLine_style = array(),  $circle_fill_color = array() )

Draws a regular 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.

$ns

(Required) (integer) Number of sides.

$angle

(Required) (float) Angle oriented (anti-clockwise). Default value: 0.

$draw_circle

(Optional) (boolean) Draw inscribed circle or not. Default value: false.

Default value: 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 ($ns - 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()


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.