JSFiddle - React, Tailwind, and code Playground
JavaScript
c = document.createElement("canvas")
c.width = 40;
c.height = 40;
x = c.getContext("2d");
document.getElementsByTagName('body')[0].appendChild(c);
c.interval = setInterval(f, 1);
function r(a,b){
return Math.floor(b * Math.random() + a)
}
function f(){
x.fillStyle = "rgba("+r(1,255)+","+r(1,255)+","+r(1,255)+", 1)";
x.fillRect(r(0,40),r(0,40),1,1);
}