Draws an Arc shape.
Syntax
<Arc centerX="float" centerY="float" height="float" width="float" startAngle="float" endAngle="float" direction="CLOCKWISE | COUNTER_CLOCKWISE" />
Attributes
The Arc
element must contain the following attributes:
centerX
,centerY
,width
,height
- A collection of attributes which define a containing oval for the arc. The arc is scaled to fit inside the specified oval. All attributes are defined as floats.
startAngle
- The angle (in degrees) where the arc begins. An angle of 0 degrees corresponds to the 12 o'clock position on the watch.
endAngle
- The angle (in degrees) where the arc ends. An angle of 0 degrees corresponds to the 12 o'clock position on the watch.
The Arc
element can optionally contain the following attributes:
direction
- The direction of the arc. Either
CLOCKWISE
orCOUNTER_CLOCKWISE
. Defaults toCLOCKWISE
.
Inner elements
The Arc
element must contain a single Stroke
element. An Arc can also
optionally contain any number of Transform
elements.
Recommended for you
- Note: link text is displayed when JavaScript is off
- TextCircular
- Complication Bounding Areas
- SweepGradient