Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/CanvasPattern.cs
MDN Reference: CanvasPattern on MDN
The CanvasPattern interface represents an opaque object describing a pattern, based on a image, a canvas or a video, created by the CanvasRenderingContext2D.createPattern() method. https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern
| Signature | Description |
|---|---|
CanvasPattern(SpawnJSObjectReference _ref) |
Deserialization constructor |
| Method | Return Type | Description |
|---|---|---|
SetTransform(DOMMatrix matrix) |
void |
The CanvasPattern.setTransform() method of the Canvas 2D API sets the transformation matrix that will be used when rendering the pattern. |