The background color for the pattern.
Returns the fill color.
The foreground color for the pattern.
The type of pattern used.
Fill type is always IFill.Type.Pattern.
Returns true if the fill has any visible styling
Sets the background color.
The background color.
Optionaloptions: UpdateOptionsSet the fill color.
The color to set for the fill.
Optionaloptions: UpdateOptionsSets the foreground color.
The foreground color.
Optionaloptions: UpdateOptionsSets the pattern type.
The pattern type.
Optionaloptions: UpdateOptionsReturns the fill as a set of css string that are suitable for css.
Optionalmode: CSSMode
The color rendering mode (see IColor.CSSMode): a boolean bakes that mode;
'adaptive' emits light-dark() so a light/dark flip needs no re-render. (Pattern fills bake
their SVG data-URI body regardless — a data-URI never sees the host color-scheme.)
Optionalsize: Size
Indicates the size of the area being filled.
The two-layer, adaptive-capable form of the pattern: a solid base (background color) plus
marks — the foreground color masked by the pattern tile (mask-image). Unlike
IFill.toCSS (whose pattern body bakes colors into an SVG data-URI), both colors here
are ordinary live CSS values, so 'adaptive' (light-dark()) and var() resolve in place —
a light/dark flip needs no re-render.
Render marks as a child box exactly filling the base element (a CSS mask clips the
element it is set on, so the two colors require two elements).
Optionalmode: CSSMode
The color rendering mode (see IColor.CSSMode).
The layer pair, or null when the pattern is None/Solid (no marks layer —
render single-element via IFill.toCSS).
Converts the pattern fill to a JSON representation.
A pattern fill, using a repeating pattern to fill the area.