Conic colour gradient paint server.
GradientConic draws colour values around a centre point, producing a conic gradient.
The Span field is honoured by REPEAT, REFLECT and CLIP spread modes. A REFLECT spread sweeps the colour ramp forwards and then back again within each Span cycle, forming a triangular sweep. With the default span of 1.0 a single triangle spans the full turn: the ramp runs from start to end across the first half-turn and back to the start across the second.
The GradientConic class consists of the following fields:
Access | Name | Type | Comment |
|---|---|---|---|
| CX | UNIT | The horizontal centre point of the gradient. | |
The | |||
| CY | UNIT | The vertical centre point of the gradient. | |
The | |||
| Radius | UNIT | The radius of the gradient. | |
The radius of the conic gradient can be defined as a fixed unit or scaled relative to its container. A default radius of 50% applies if this field is not set. | |||
| Span | DOUBLE | Defines the angular size of one conic gradient cycle. | |
The span is normalised so that When Gradient⇒SpreadMethod is | |||
| XMLDef | STRING | Returns an SVG compliant XML string that describes the effect. | |