Enum svg::path::Command
[−]
[src]
pub enum Command { MoveTo(Positioning, Vec<f64>), ClosePath, LineTo(Positioning, Vec<f64>), HorizontalLineTo(Positioning, Vec<f64>), VerticalLineTo(Positioning, Vec<f64>), CurveTo(Positioning, Vec<f64>), SmoothCurveTo(Positioning, Vec<f64>), QuadraticBezierCurveTo(Positioning, Vec<f64>), SmoothQuadraticBezierCurveTo(Positioning, Vec<f64>), EllipticalArc(Positioning, Vec<f64>), }
A command used to draw a path.
Variants
MoveTo(Positioning, Vec<f64>)
Establish a new current point.
ClosePath
End the current subpath.
LineTo(Positioning, Vec<f64>)
Draw straight lines.
HorizontalLineTo(Positioning, Vec<f64>)
Draw horizontal lines.
VerticalLineTo(Positioning, Vec<f64>)
Draw vertical lines.
CurveTo(Positioning, Vec<f64>)
Draw a cubic Bézier curve.
SmoothCurveTo(Positioning, Vec<f64>)
Draw a cubic Bézier curve assuming the first control point to be the reflection of the second control point on the previous command relative to the current point.
QuadraticBezierCurveTo(Positioning, Vec<f64>)
Draw a quadratic Bézier curve.
SmoothQuadraticBezierCurveTo(Positioning, Vec<f64>)
Draw a quadratic Bézier curve assuming the control point to be the reflection of the control point on the previous command relative to the current point.
EllipticalArc(Positioning, Vec<f64>)
Draw an elliptical arc.