Canvas HTML element being used as a rendering surface
Rendering context
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
View height (CSS pixels)
View width (CSS pixels)
Clear the canvas
optional RGBA color to use as a background color
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
Flipnote renderer for the HTML5 2D canvas API