Creates a new WebGlCanvas instance
Canvas width in CSS pixels
Canvas height in CSS pixels
The ratio between width
and height
should be 3:4 for best results
Canvas HTML element being used as a rendering surface
Backing canvas height (real pixels) Note that this factors in device pixel ratio, so it may not reflect the size of the canvas in CSS pixels
Backing canvas width (real pixels) Note that this factors in device pixel ratio, so it may not reflect the size of the canvas in CSS pixels
Rendering context - see https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext
View height (CSS pixels)
View width (CSS pixels)
Clear the canvas
optional RGBA color to use as a background color
Frees any resources used by this canvas instance
Draw a frame from the currently loaded Flipnote
image mime type (image/jpeg
, image/png
, etc)
image quality where supported, between 0 and 1
Returns true if the webGL context has returned an error
Resize the canvas surface
New canvas width, in CSS pixels
New canvas height, in CSS pixels
The ratio between width
and height
should be 3:4 for best results
Sets the note to use for this player
Flipnote renderer for the WebGL API
Only available in browser contexts