Path
Describes a vector path.
class Path
Constructors
()
Creates an empty Path
.
Methods
move(to position: Point)
Begins a new subpath at the given position.
add_line(to position: Point)
Appends a straight line segment from the current point to the specified point.
add_quad_curve(to position: Point, control: Point)
Adds a quadratic Bézier curve to the path, with the specified end point and control point.
add_cubic_curve(to position: Point, control1: Point, control2: Point)
Adds a cubic Bézier curve to the path, with the specified end point and control points.
close_subpath()
Closes and completes the current subpath.