Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 879 Bytes

File metadata and controls

21 lines (14 loc) · 879 Bytes

CanvasPattern

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

Constructors

Signature Description
CanvasPattern(SpawnJSObjectReference _ref) Deserialization constructor

Methods

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.