Returns the current pen angle in degrees
The angle represents the tangent direction at the current pen position, based on the last drawing operation (line, arc, bezier, etc.). Returns 0 if nothing has been drawn yet.
Returns the current pen position as [x, y] coordinates
Protected_ProtectedfirstProtectedpendingProtectedpointerProtected_Protected_Protected_Protected_Protected_Draw an arc to a relative end point using a bulge factor.
Draw an arc to an absolute end point using a bulge factor (sagitta as fraction of half-chord).
Close the path with a straight line to the start point and return the Drawing.
Close the path by mirroring all curves about the line from first to last point.
Draw an elliptical arc to a relative end point (SVG-style parameters).
Draw an elliptical arc to an absolute end point (SVG-style parameters).
Draw a half-ellipse arc to a relative end point with a given minor radius.
Draw a half-ellipse arc to an absolute end point with a given minor radius.
Draw a horizontal bulge arc of the given distance and bulge factor.
Draw a horizontal line of the given signed distance.
Draw a horizontal line to an absolute X coordinate.
Draw a horizontal sagitta arc of the given distance and bulge.
Draw a straight line by relative horizontal and vertical distances.
Move the pen to an absolute 2D position before drawing any curves.
Draw a line in polar coordinates (distance and angle in degrees) from the current point.
Draw a line to a point given in polar coordinates [r, theta] from the origin.
Draw a circular arc to a relative end point, bulging by the given sagitta.
Draw a circular arc to an absolute end point, bulging by the given sagitta.
ProtectedsaveDraw a smooth cubic Bezier spline to a relative end point, blending tangent with the previous curve.
OptionalsplineConfig: SplineOptionsDraw a smooth cubic Bezier spline to an absolute end point, blending tangent with the previous curve.
Optionalconfig: SplineOptionsDraw a circular arc tangent to the previous curve, ending at a relative offset.
Draw a circular arc tangent to the previous curve, ending at an absolute point.
Draw a line tangent to the previous curve, extending by the given distance.
Draw a circular arc through a via-point to an end point, both as relative distances.
Draw a vertical bulge arc of the given distance and bulge factor.
Draw a vertical line of the given signed distance.
Draw a vertical line to an absolute Y coordinate.
Draw a vertical sagitta arc of the given distance and bulge.
DrawingPen is a helper class to draw in 2D. It is used to create drawings by exposing a builder interface. It is not a drawing itself, but it can be used to create a drawing.