JSFiddle - React, Tailwind, and code Playground
by Simonwep
HTML
<canvas width="500" height="500"></canvas>
JavaScript
const cvs = document.querySelector('canvas');
const ctx = cvs.getContext('2d');
ctx.fillStyle = 'black';
ctx.fillRect(0, 0, 50, 50);
ctx.fillStyle = 'orange';
ctx.scale(2, 2);
ctx.fillRect(0,0,50,50);