4D v13SVG_New_path |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_New_path
SVG_New_path
The SVG_New_path command starts a new path in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated. A path represents the outline of a shape. A path is depicted by calling upon the concept of a current point. By analogy with a drawing on paper, the current point can be assimilated to the position of the pen. This point can change and the outline of a shape (open or closed) can be traced by moving the pen along a straight or curved line. The x and y parameters can be used to specify the start position of a path in the SVG container. 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 closed broken line: svgRef:=SVG_New Draw a Bezier curve: svgRef:=SVG_New Arc commands in path data: svgRef:=SVG_New Complex path (cubic Bezier curve): `Create a new SVG tree Quadratic Bezier curve: `Create a new SVG tree |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: Composant 4D SVG v11.4 SEE ALSO
SVG_PATH_CLOSE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||