(MaxCanvas)
Version 1.0 (June 2018 - April 2019)
First Release
All Engine Variables reside in this namespace.
Avoid extending as future versions may overwrite your work !
Version 1.0 (June 2018 - April 2019)
First Release
All Engine Variables reside in this namespace.
Avoid extending as future versions may overwrite your work !
Classes
Interfaces
Methods
(static) init(canvas, fullWindowopt)
Initialises the MaxCanvas (MC) Engine by passing it a reference to the canvas it is to use.
(1) If the parameter string "fullWindow" is entered, the canvas will automatically re-size to the browser window size. It will subsequently be resized with the window.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
canvas |
Object | HTML canvas to be used | |
fullWindow |
String |
<optional> |
(1) |
Example
var c=document.getElementById("canvas");
MC.init(c,"fullWindow");