make wider canvas

This commit is contained in:
Ayo 2023-02-03 21:49:56 +01:00
parent 4e991857f9
commit 9eb8677edf
3 changed files with 6 additions and 1 deletions

View file

@ -16,6 +16,7 @@
<button onclick="addShape()">Add Shape!</button>
<hr />
<br />
<div id="canvas"></div>
<script src="index.js"></script>
</body>
</html>

View file

@ -10,8 +10,12 @@ let engine = Engine.create();
// create a renderer
let render = Render.create({
element: document.body,
element: document.getElementById("canvas"),
engine: engine,
options: {
width: 1600,
height: 800,
},
});
function kaboom() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 KiB

After

Width:  |  Height:  |  Size: 238 KiB