class Arc
- Extends:
- Shape
Description:
An Arc shape that extends the Shape class.
An Arc is a portion of a circle defined by its center coordinates, width (horizontal diameter), height (vertical diameter), starting angle, and extent (the angular span of the arc) in degrees.
Constructor
constructor([stroke], [background], [opacity=1], [x=0], [y=0], [width=100], [height], [startAngle=0], [extent=360])
Creates an instance of Arc shape.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
A border of the shape. |
||
|
|
string |
Color, gradient, or image background, similar to CSS. Use an empty string to remove the background. |
|
|
|
number |
1 |
Opacity of the shape (0 to 1). |
|
|
number |
0 |
Horizontal position from the left edge. |
|
|
number |
0 |
Vertical position from the top edge. |
|
|
number |
100 |
Width of the arc (horizontal diameter). |
|
|
number |
Height of the arc (vertical diameter). If omitted, height will be same as width. |
|
|
|
number |
0 |
Starting angle of the arc (0 to 360 degrees). |
|
|
number |
360 |
How much of the arc to remove (0 to 360 degrees). |
Members
Methods
From this class:
Inherited from Shape:
- add()
- anchor()
- angle()
- background()
- intersect()
- intersects()
- opacity()
- position()
- stroke()
- subtract()
- visible()
- x()
- y()
