ShapePath class

ShapePath class

Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape.

The ShapePath type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Initializes a new instance of the ShapePath class.

Properties

PropertyDescription
path_segement_listGets ShapeSegmentPathCollection list

Methods

MethodDescription
move_to(self, x, y)Starts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure.
line_to(self, x, y)Appends a line segment to the current figure. The starting point is the end point of the current figure.
cubic_bezier_to(self, ctr_x1, ctr_y1, ctr_x2, ctr_y2, end_x, end_y)Appends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure.
arc_to(self, w_r, h_r, st_ang, sw_ang)Appends an elliptical arc to the current figure. The starting point is the end point of the current figure.
close(self)Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.

See Also