Documentation / @ripl/3d / TexturePattern
Interface: TexturePattern ​
Defined in: 3d/src/core/texture-pattern.ts:19
The tile geometry and repetition a Texture maps onto, and the pattern built from it.
The tile is the texture's own image unless a wrap mode needs a derived one — a mirrored axis doubles the tile so the browser's plain repetition reproduces the flip, and an ImageData source is materialised into a canvas because createPattern will not accept it.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
pattern | CanvasPattern | null | The repeating pattern to fill with, or null when the texture has no pixels yet. | 3d/src/core/texture-pattern.ts:21 |
repetition | TexturePatternRepetition | The repetition mode the pattern was created with. | 3d/src/core/texture-pattern.ts:23 |