make wider canvas
This commit is contained in:
parent
4e991857f9
commit
9eb8677edf
3 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
<button onclick="addShape()">Add Shape!</button>
|
||||
<hr />
|
||||
<br />
|
||||
<div id="canvas"></div>
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
6
index.js
6
index.js
|
@ -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() {
|
||||
|
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 277 KiB After Width: | Height: | Size: 238 KiB |
Loading…
Reference in a new issue