blob: 7c1543a82a20905ec1b60dfb705fe4dabe49460f [file] [log] [blame]
<style>
html, body {
margin: 0;
height: 100%;
overflow: hidden;
}
canvas {
image-rendering: pixelated;
}
</style>
<body>
<canvas id="canvas" width="120" height="120"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(10, 10, 100, 100);
</script>
</body>