JSFiddle - React, Tailwind, and code Playground

by David Joseph Guzsik

HTML

<canvas id="canvas">
</canvas>

JavaScript

const el = doucment.querySelector('#canvas');
el.width = 0xfff;
el.height = 0xfff;
const ctx = el.getContext('2d');
const id = ctx.getImageData(0,0,el.width,el.height);
for (let y = 0; y < e.width; y++){
	for (let x = 0; x < el.height; x++){
  	id.data[];
  }
}