Appearance
CanvasEngine
Create a Canvas Engine
every canvas application should create a CanvasEngine
instance
const engine = new CanvasEngine({
// w: canvas width
w: "600",
// h: canvas height
h: "600",
// canvas dom target: must be id
canvasTarget: "canvas1",
});
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8