A gradient transitioning between two colors between a start and end angle.
Syntax
<SweepGradient centerX="float" centerY="float" startAngle="float" endAngle="float" colors="argb-color argb-color" positions="float float" />
Attributes
The SweepGradient element has the following attributes:
Required attributes
The following attributes are required:
centerXThe x-coordinate of the center of the radius.
This attribute is transformable.
centerYThe y-coordinate of the center of the radius.
This attribute is transformable.
startAngleThe angle (in degrees) to start the gradient.
This attribute is transformable.
endAngleThe angle (in degrees) to end the gradient.
This attribute is transformable.
colorsA space-separated list of colors. You must specify each color using either the ARGB format (
#ff000000= opaque black) or the RGB format (#000000= black).positionsA space-separated list of floats. The relative positions [0..1] of each corresponding color in the colors attribute. If this is an empty string, the colors are distributed evenly along the gradient line.
Optional attributes
The following attributes are optional:
direction- The direction of the sweep. Either
CLOCKWISEorCOUNTER_CLOCKWISE. Defaults toCLOCKWISE.
Inner elements
The SweepGradient element can contain :
- Between 0 and 4
Transformelements.
Recommended for you
- Note: link text is displayed when JavaScript is off
- TextCircular
- TextCircular
- Arc