Name
CRC.arc() — adds an arc, using a center point and radius
Synopsis
void arc(floatx, floaty, floatradius, floatstartAngle,endAngle, booleancounterclockwise)
Arguments
x, yThe coordinates of the center of the circle describing the arc.
radiusThe radius of the circle describing the arc.
startAngle, endAngleThe angles that specify the start and endpoints of the arc along the circle. These angles are measured in radians. The three o’clock position along the positive X axis is an angle of 0, and angles increase in the clockwise direction.
counterclockwiseWhether the arc is traversed counterclockwise (
true) or clockwise (false) along the circle’s circumference.
Description
The first five arguments to this method specify a start point and an endpoint on the circumference of a circle. Invoking this method adds a straight line between the current point and the start point to the current subpath. Next it adds the arc along the circumference of the circle between the start and endpoints to the subpath. The final argument specifies the direction in which the circle should be traversed to connect the start and endpoints. This method leaves the current point set to the endpoint of the arc.
See Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access