<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Canvas tutorial</title>
</head>
<body>
<canvas width="600" height="400"></canvas>
<script>
const canvas = document.querySelector("canvas");
const pincel = canvas.getContext('2d');
pincel.fillStyle="yellow";
pincel.fillRect(0,0,200,400);
pincel.fillStyle="blue";
pincel.fillRect(200,0,400,400)
pincel.fillStyle="red";
pincel.fillRect(400,0,600,400)
</script>
</body>
</html>
![]( )