Back to API Reference
Struct
PaintSwatch
sealed
Implements:IStateSnapshot<PaintSwatch>
A named paint in a UniTextPaints — a solid colour, gradient, or texture, plus how it projects and composites. paint is the reusable authored appearance, while mapping selects its text bounds. The swatch is the weakest layer of the projection override hierarchy (swatch → modifier fields → default parameters → tag attributes); an inherited mapping resolves to Block.
public static PaintSwatch LinearGradient()A swatch named name of a linear gradient through stops, mixed perceptually, its axis turned by angle degrees and stretched across each range it paints.
public PaintSwatch CaptureStateSnapshot()Captures the swatch with detached gradient-stop storage.
public PaintMapping mappingText-specific bounds owner used to build the projection frame.
