Gradient Fills
Gradient Fills consist of three elements: a list of gradient stops, a shading specification, as well as some attributes.
Two attributes are available on gradient fills.
@flip
specifies how to flip a tile region when using it to fill a larger fill region.@rotWithShape
specifies whether the fill rotates along with a shape when the shape is rotated.
A gradient stop list is a list of locations and colors that make up the gradient fill. Positions are specified as percentages.
The shading specification specifies the two possible kinds of gradient fills: linear, or path based. A linear fill follows a straight-line direction as specified by the angle of the line. A path-based fill follows the contours of a well-defined path (such as a shape, circle, or rectangle).