Optional
repetition: PatternRepetitionReturns a unique key for this instance. This key is used for caching.
Unique key for the instance
Internal texture used to render the gradient
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