blob: 802b120cbb137e3a15d425ccf3871b7cab4bdc47 [file] [log] [blame]
<head>
<meta name="viewport" content="width=device-width">
<style>
canvas {
width: 100px;
height: 100px;
background-color: black;
padding: 10px;
}
</style>
</head>
<canvas>
<script type="text/javascript">
var canvas = document.querySelector("canvas");
canvas.width = canvas.clientWidth * window.devicePixelRatio;
canvas.height = canvas.clientHeight * window.devicePixelRatio;
var gl = canvas.getContext("webgl");
gl.clearColor(0, 0, 0, 1);
gl.clear(gl.COLOR_BUFFER_BIT);
</script>
</canvas>