4D v14SVG_New_regular_polygon |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14
SVG_New_regular_polygon
SVG_New_regular_polygon
The SVG_New_regular_polygon command draws a regular polygon with number of sides fit into a circle with a diameter of width in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated. The optional x and y parameters can be used to specify the center of the circle. If they are omitted, the figure will be drawn in the upper left corner of the document. 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 commands of the Colors and Gradients theme). The optional strokeWidth parameter contains the size of the pen expressed in pixels. Its default value is 1. Draw a pentagon (default fill and border color, default line thickness): svgRef:=SVG_New Draw an octogon, the circle containing it and the trace lines: svgRef:=SVG_New |
PROPERTIES
Product: 4D
HISTORY
Modified: Composant 4D SVG v11.4 SEE ALSO ARTICLE USAGE
4D SVG Component ( 4D v13) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||