Arc

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 has the following attributes:

Required attributes

The following attributes are required:

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.

Optional attributes

The following attributes are optional:

direction
The direction of the arc. Either CLOCKWISE or COUNTER_CLOCKWISE. Defaults to CLOCKWISE.

Inner elements

The Arc element must contain a single Stroke element. An Arc can also optionally contain any number of Transform elements.