Expand description
Gradient paint servers; the linearGradient
and radialGradient
elements.
Macros
Structs
- Contents of a
<stop>
element for gradient color stops - Common 🔒Fields shared by all gradient nodes
- Node for the
<linearGradient>
element - Node for the
<radialGradient>
element - Resolved gradient; this is memoizable after the initial resolution.
- Node for the
<stop>
element - State used during the gradient resolution process
- Main structure used during gradient resolution. For unresolved gradients, we store all fields as
Option<T>
- ifNone
, it means that the field is not specified; ifSome(T)
, it means that the field was specified. - Gradient normalized to user-space units.
Enums
- Parameters specific to each gradient type, after normalizing to user-space units.
- Parameters specific to each gradient type, after resolving.
- spreadMethod attribute for gradients
- Parameters specific to each gradient type, before being resolved. These will be composed together with UnreseolvedVariant from fallback nodes (referenced with e.g.
<linearGradient xlink:href="#fallback">
) to form a final, resolved Variant.