Documentation / @ripl/core / Pattern
Interface: Pattern ​
Defined in: packages/core/src/pattern/types.ts:5
A parsed repeating pattern (decal) fill, used to keep series distinguishable without relying on color alone.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
background | string | The CSS color painted behind the motif; 'transparent' leaves the tile see-through. | packages/core/src/pattern/types.ts:11 |
foreground | string | The CSS color used to draw the pattern's lines or dots. | packages/core/src/pattern/types.ts:9 |
size | number | The width and height of the square repeating tile, in user-space pixels. | packages/core/src/pattern/types.ts:13 |
type | PatternType | The built-in tile motif drawn by the pattern. | packages/core/src/pattern/types.ts:7 |