4D v14SVG_New_polygon |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14
SVG_New_polygon
|
SVG_New_polygon ( parentSVGObject {; points {; foregroundColor {; backgroundColor {; strokeWidth}}}} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
parentSVGObject | SVG_Ref |
![]() |
Reference of parent element | |||||
points | String |
![]() |
Path | |||||
foregroundColor | String |
![]() |
Color or gradient name | |||||
backgroundColor | String |
![]() |
Color or gradient name | |||||
strokeWidth | Real |
![]() |
Line thickness | |||||
Function result | SVG_Ref |
![]() |
Reference of polygon | |||||
The SVG_New_polygon command creates a new closed form in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not a valid reference, an error is generated.
The optional points parameter can be used to pass thepath points of the polygon as expected by the SVG standard. If this parameter is omitted or empty, the points may be set using the SVG_ADD_POINT command.
The optional foregroundColor and backgroundColor parameters contain, respectively, the name of the line color and of the background color. (For more information about colors, please refer to the ”Colors and gradients” section).
The optional strokeWidth parameter contains the size of the pen expressed in pixels. Its default value is 1.
Product: 4D
Theme: Drawing
Number:
65971
Modified: Composant 4D SVG v11.4
SVG_New_polygon_by_arrays
SVG_New_rect
SVG_New_regular_polygon
4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( Composant 4D SVG v11.4)
4D SVG Component ( 4D v14 R2)
4D SVG Component ( 4D v14)
4D SVG Component ( 4D v14 R3)
4D SVG Component ( 4D v14 R4)