The background color used to clear the main framebuffer. Note: alpha value will be set based on the transparent property of the renderer settings.
the default method to sort object ("sorting", "z-buffer")
the requested video size ratio
true if the current rendering context is valid
The Path2D instance used by the renderer to draw primitives
The renderer renderTarget
the scaling ratio to be applied to the main canvas
The given constructor options
The renderer type : Canvas, WebGL, etc... (override this property with a specific value when implementing a custom renderer)
return the height of the canvas which this renderer draws to
height of the system Canvas
return the width of the canvas which this renderer draws to
width of the system Canvas
return a reference to the current render target corresponding canvas which this renderer draws to
return a reference to the current render target corresponding Context
set/change the current projection matrix (WebGL only)
set a coloring tint for sprite based renderables
the tint color
Optional
alpha: number = tint.alphaan alpha value to be applied to the tint
tint the given image or canvas using the given color
the source image to be tinted
the color that will be used to tint the image
Optional
mode: string = "multiply"the composition mode used to tint the image
a new canvas or offscreencanvas (if supported) element representing the tinted image
creates a Blob object representing the last rendered frame
Optional
type: string = "image/png"A string indicating the image format
Optional
quality: numberA Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range.
A Promise returning a Blob object representing the last rendered frame
returns a data URL containing a representation of the last frame rendered
Optional
type: string = "image/png"A string indicating the image format
Optional
quality: numberA Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range.
A Promise returning a string containing the requested data URL.
creates an ImageBitmap object of the last frame rendered (not supported by standard Canvas)
Optional
type: string = "image/png"A string indicating the image format
Optional
quality: numberA Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range.
A Promise returning an ImageBitmap.
a base renderer object