1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Full screen canvas

This commit is contained in:
Emil Ernerfeldt
2018-12-28 00:51:40 +01:00
parent 1c6fd220b2
commit 702ec23372
4 changed files with 93 additions and 44 deletions

View File

@@ -9,12 +9,11 @@
/* Remove touch delay: */
touch-action: manipulation;
}
body {
background: #000000;
color: #bbbbbb;
max-width: 1024px;
margin: auto;
}
html, body {
overflow: hidden;
}
</style>
</head>
@@ -38,6 +37,6 @@
<script src="frontend.js" type="module"></script>
<!-- TODO: make this cover the entire screen, with resize and all -->
<canvas id="canvas" width="1024" height="768"></canvas>
<canvas id="canvas" width="1024" height="1024"></canvas>
</body>
</html>