<canvas whdth='600' height='200'></canvas>
<script>
var tela = document.querySelector('canvas');
var pincel = tela.getContext('2d');
pincel.fillStyle ='darkgreen';
pincel.fillRect(0,0,600,200);
pincel.fillStyle ='yellow';
pincel.beginPath();
pincel.moveTo(150,0);
pincel.lineTo(0,100);
pincel.lineTo(300,100);
pincel.fill();
pincel.fillStyle ='yellow';
pincel.beginPath();
pincel.moveTo(300,100);
pincel.lineTo(0,100);
pincel.lineTo(150,200);
pincel.fill();
pincel.fillStyle ='darkblue';
pincel.beginPath();
pincel.arc(150, 100, 70, 0, 2 * 3.14);
pincel.fill();
</script>