PSSVG

SVG.CurvePath

Synopsis

Draws an SVG curve.


Description

Draws an SVG curve path.



Examples

EXAMPLE 1

-OutputPath .\Curves.svg @(    
    =<svg.CurvePath> -Start 10 -ControlPoint 15,5,20,40  -End 30,30 -fill transparent -stroke black    
) -viewbox 50, 50

Parameters

ControlPoint

One or two control points.
If two control points are provided, it will be assumed to be a Bezier curve.
If only one control point is provided, it will be assumed to be a Quadratic curve.

Type Required Position PipelineInput
[Double[]] false 1 true (ByPropertyName)

Start

The start point of the curve.
If only one value is provided, it will be used as the X and Y coordinate.

Type Required Position PipelineInput
[Double[]] false 2 true (ByPropertyName)

End

The end point of the curve.
If only one value is provided, it will be used as the X and Y coordinate.

Type Required Position PipelineInput
[Double[]] false 3 true (ByPropertyName)

Smooth

If set, will attempt to draw a smooth bezier curve.

Type Required Position PipelineInput
[Switch] false named true (ByPropertyName)

MultiQuadratic

If set, will draw a multi-quadratic line.
This can only be used if preceeded by another curve.

Type Required Position PipelineInput
[Switch] false named true (ByPropertyName)

Quadratic

If set, will draw a quadratic bezier curve.
This is the default, as it only requires a single control point.

Type Required Position PipelineInput
[Switch] false named true (ByPropertyName)

Close

If set, will close the path after this element.

Type Required Position PipelineInput
[Switch] false named true (ByPropertyName)

Syntax

SVG.CurvePath [[-ControlPoint] <Double[]>] [[-Start] <Double[]>] [[-End] <Double[]>] [-Smooth] [-MultiQuadratic] [-Quadratic] [-Close] [<CommonParameters>]