first shape
This commit is contained in:
parent
5e31e11091
commit
8d215e1db0
7 changed files with 136 additions and 8 deletions
11
main.js
11
main.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue