4D v14

SVG_New_circle

Home

 
4D v14
SVG_New_circle

SVG_New_circle 


 

SVG_New_circle ( parentSVGObject ; x ; y ; radius {; foregroundColor {; backgroundColor {; strokeWidth}}} ) -> Function result 
Parameter Type   Description
parentSVGObject  SVG_Ref in Reference of parent element
Longint in Coordinate on center X axis
Longint in Coordinate on center Y axis
radius  Longint in Radius of circle
foregroundColor  String in Color or gradient name
backgroundColor  String in Color or gradient name
strokeWidth  Real in Line thickness
Function result  SVG_Ref in Reference of circle

The SVG_New_circle command creates a new circle in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated.

The circle is positioned and sized according to the center coordinates (x and y) and the radius passed as a parameter.

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 circle (default fill and border color, default line thickness):

 svgRef:=SVG_New
 objectRef:=SVG_New_circle(svgRef;100;100;90)

Draw a light blue circle with a blue edge and a 2-point link thickness:

 svgRef:=SVG_New
 objectRef:=SVG_New_circle(svgRef;100;100;90;"blue";"lightblue";2)

 
PROPERTIES 

Product: 4D
Theme: Drawing
Number: 65978

 
HISTORY 

Modified: Composant 4D SVG v11.4

 
SEE ALSO 

SVG_New_ellipse

 
ARTICLE USAGE

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)