fantasy/main.js

11 lines
252 B
JavaScript
Raw Normal View History

2018-11-18 18:04:50 +00:00
import factory from "./painting/factory.js";
import Canvas from "./painting/canvas.js";
2018-11-18 00:00:38 +00:00
2018-11-18 18:04:50 +00:00
document.body.innerHTML = "";
2018-11-18 10:07:36 +00:00
2018-11-18 18:04:50 +00:00
let canvas = new Canvas();
document.body.appendChild(canvas.element);
let shape = factory.createRandomShape();
shape.draw(canvas);