pub type Paint = OneOf2<Color, Gradient>;Expand description
The paint used by a stroke: a solid color or a gradient.
Typst also allows a tiling pattern as a stroke’s paint; that variant has
no Typwire representation (no Pattern/Tiling type exists in this
crate yet), so encoding a pattern-painted stroke fails the same way any
other unsupported value does.
Aliased Type§
pub enum Paint {
First(Color),
Second(Gradient),
}