CanvasBuffer Class
Creates a Canvas element of the given size.
Constructor
CanvasBuffer
(
-
width -
height
Parameters:
-
widthFloatthe width for the newly created canvas
-
heightFloatthe height for the newly created canvas
Methods
resize
(
-
width -
height
Resizes the canvas to the specified width and height.
Parameters:
-
widthFloatthe new width of the canvas
-
heightFloatthe new height of the canvas
Properties
canvas
HTMLCanvasElement
The Canvas object that belongs to this CanvasBuffer.
context
CanvasRenderingContext2D
A CanvasRenderingContext2D object representing a two-dimensional rendering context.
height
Float
The height of the Canvas in pixels.
width
Float
The width of the Canvas in pixels.
