<canvas width="600" height="400"></canvas>
<script>
var bandeira = document.querySelector("canvas");
var pincel = bandeira.getContext("2d");
pincel.fillStyle = "green";
pincel.fillRect(0, 0, 600, 400);
pincel.fillStyle = "yellow";
pincel.beginPath();
pincel.moveTo(300, 5);
pincel.lineTo(5, 200);
pincel.lineTo(300,395);
pincel.lineTo(595,200);
pincel.fill();
pincel.fillStyle = "blue";
pincel.beginPath();
pincel.arc(300, 200, 125, 0, 2*3.14);
pincel.fill();
</script>