first shape

This commit is contained in:
Blue 2018-11-18 21:04:50 +03:00
parent 5e31e11091
commit 8d215e1db0
7 changed files with 136 additions and 8 deletions

11
main.js
View file

@ -1,5 +1,10 @@
import Shape from "./painting/shape.js"
import factory from "./painting/factory.js";
import Canvas from "./painting/canvas.js";
document.getElementById("main").innerText = "Yep";
document.body.innerHTML = "";
let s1 = new Shape();
let canvas = new Canvas();
document.body.appendChild(canvas.element);
let shape = factory.createRandomShape();
shape.draw(canvas);