1let canvas = document.getElementById("canvas");
2let ctx = canvas.getContext("2d");
3
4ctx.fillStyle = "#ff0000";
5ctx.fillRect(20, 20, 150, 100);
6
1
2let ctx = canvas.getContext("2d");
3
4ctx.fillStyle = "#ff0000";
5ctx.fillRect(20, 20, 150, 100);
6