Optional
repetition: PatternRepetitionInternal texture used to render the gradient
The transform matrix applied to the pattern
Gets a unique key representing the current state of the pattern. Used internally for caching.
Unique string key
Destroys the fill pattern, releasing resources. This will also destroy the internal texture.
Sets the transform for the pattern
Optional
transform: MatrixThe transform matrix to apply to the pattern. If not provided, the pattern will use the default transform.
A class that represents a fill pattern for use in Text and Graphics fills. It allows for textures to be used as patterns, with optional repetition modes.
Example