Arc

Arc objects are created using the following functions. An Arc is drawn inside an invisible rectangle by specifying the top-left corner point (x1, y1), the bottom-right corner point (x2, y2), the start angle, and the end angle in degrees.

Function

Description

Arc(x1, y1, x2, y2, startAngle, endAngle)

Creates an Arc with top-left corner at x1, y1, bottom-right corner at x2, y2, , startAngle (in degrees), endAngle (in degrees).
Notes: Angle 0 is at the three o’clock position, 90 at twelve o’clock, 180 at nine o’clock, and 270 at six o’clock. Also, -90 is at six o’clock, -270 at twelve o’clock, and so on. Drawing always occurs from startAngle to endAngle (if startAngle < endAngle, drawing is counterclockwise; else, it’s clockwise).