▶️MayoGL Class
Initialising a canvas
class MayoGL(canvas: DOM Element, options: JSON)Example
var display = new MayoGL(document.getElementById("screen"),
{
width: 800,
height: 600,
alpha: true,
clearColor: '#222',
pixelSize: 2,
antiAlias: true
}
)Options
Canvas
Options
name
Type
Description
Default Value
Last updated