<!DOCTYPE html>
<html lang="lv">
<head>
<title>Mans zīmējums</title>
<meta charset="UTF-8">
</head>
<body>
<canvas id="zimejums" width="400" height="400" style="border:1px solid black;"></canvas>
<script>
const canvas = document.getElementById("zimejums");
const ctx = canvas.getContext("2d");
ctx.fillStyle = "purple";
ctx.fillRect(0, 0, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(100, 0, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(200, 0, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(300, 0, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(0, 100, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(100, 100, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(200, 100, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(300, 100, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(0, 200, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(100, 200, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(200, 200, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(300, 200, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(0, 300, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(100, 300, 100, 100);
ctx.fillStyle = "pink";
ctx.fillRect(200, 300, 100, 100);
ctx.fillStyle = "purple";
ctx.fillRect(300, 300, 100, 100);
</script>
</body>
</html>