TGML Radial Gradient
<RadialGradient> defines a radial gradient brush for the stroke or fill area of the immediate parent.
<RadialGradient> works in conjunction with gradient stops, which describe the location and color of transition points in gradients. For more information, see the TGML Gradient Stop section.
Attribute | Type | Description |
---|---|---|
Attribute |
String |
The brush attribute of the parent ("Fill" or "Stroke"). |
Center |
Point |
The center of the circle of the radial gradient. See Remarks. |
Focus |
Point |
The location of the focal point that defines the beginning of the gradient. See Remarks. |
RadiusX |
Double |
The horizontal radius of the circle of the radial gradient. See Remarks. |
RadiusY |
Double |
The vertical radius of the circle of a radial gradient. See Remarks. |
SpreadMethod |
SpreadMethod |
Specifies how the gradient should be drawn outside of the specified gradient vector or space. See Remarks. |
Remarks
The RadialGradient is similar in programming model to the LinearGradient. However, RadialGradient does not have start and end points, but a circle, along with a focal point, to define the gradient behavior. The focal point defines the beginning of the gradient, and the circle defines the end point of the gradient.
Radial gradient only supports the spread method Pad in TGML version 1.0.
Example: