Adds an arc to the path with center point (x, y) and radius r starting at startAngle and ending at endAngle. The arc is drawn in clockwise directio by default.
x-coordinate of arc center point.
y-coordinate of arc center point.
Radius of arc.
The starting angle of the arc, measured clockwise from the positive x axis and expressed in radians.
The end angle of the arc, measured clockwise from the positive x axis and expressed in radians.
Optional boolean flag, if true the arc is drawn counter-clockwise between the two angles.
Start a new path by emptying the list of sub-paths.
Causes the point of the pen to move back to the start of the current sub-path. It tries to draw a straight line from the current point to the start. If the shape has already been closed or has only one point, this function does nothing.
Connects the last point in the sub-path to the x, y coordinates with a straight line (but does not actually draw it).
The x-coordinate for the end of the line.
The y-coordinate for the end of the line.
Move the starting point of a new sub-path to the (x, y) coordinates.
The x-coordinate for the new starting point.
The y-coordinate for the new starting point.
Generated using TypeDoc
A minimal rendering context for a GeoPath generator. The minimum implemented methods are a subset of the CanvasRenderingContext2D API.
For reference to the CanvasRenderingContext2D see https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D