Arcs
An arc in jCanvas is, essentially, part of the rim of a circle (similar to the smile on a smiley-face).
Basic Usage
You can draw an arc using the drawArc()
method. The size of an arc is determined by its start
, end
, and radius
properties.
jCanvas considers zero degrees to lie due north of the arc (like the 12 on an analog clock).
If you omit the start
and end
properties, the arc defaults to a full circle.
Radian values
The start
and end
values are measured in degrees by default. If you’d prefer to use radians, include the inDegrees
property with a value of false
.
Closed Arc
Using the closed
property, you can also close an arc, which connects the start and end points.