Name | Type | Default | Description |
---|---|---|---|
width |
number |
the width for the newly created canvas |
|
height |
number |
the height for the newly created canvas |
|
resolution |
number | 1 |
optional
The resolution / device pixel ratio of the canvas |
Members
-
The Canvas object that belongs to this CanvasRenderTarget.
-
A CanvasRenderingContext2D object representing a two-dimensional rendering context.
-
The height of the canvas buffer in pixels.
-
The width of the canvas buffer in pixels.