JSFiddle - React, Tailwind, and code Playground

by gianlucaguarini

HTML

<canvas id="canvas"></canvas>
<div class="scale">
<span>Hello World</span>
</div>

CSS

body {
background:#000;
}
.scale {
color:#fff;
    position:absolute;
top:10px;
left:10px;
font-family:  Arial;
font-size:11px;
}

JavaScript

var canvas = document.getElementById("canvas");
canvas.width = 600;
canvas.height = 600;
var ctx = canvas.getContext("2d");
ctx.fillStyle="#000000";
ctx.fillRect(0,0,600,600);