Class GradientFill
Fills a shape with a gradient.
Implements
Inherited Members
Namespace: Unity.VectorGraphics
Assembly: solution.dll
Syntax
public class GradientFill : IFill
Remarks
Size of the fill is always assumed to cover the entire element's bounding box. Radial fills are centered in the element's bounding box. Its radii are half the bounding box dimensions in each direction. Linear fills start from the left edge to the right edge of the element's bounding box.
Properties
Name | Description |
---|---|
Addressing | The adressing mode (wrap, clamp or mirror) of this fill. |
Mode | The filling method (non-zero or even-odd) of the fill. |
Opacity | The opacity of the fill. |
RadialFocus | A position within the unit circle (-1,1) where 0 falls in the middle of the fill. |
Stops | An array of stops defining the gradient colors. |
Type | The fill type (linear or gradient). |