<meta charset="utf-8">
<canvas width="600" height="400"> </canvas>
<script type="text/javascript">
var tela = document.querySelector('canvas');
var pincel = tela.getContext('2d');
//pincel.fillStyle = "lightgrey";
//pincel.fillRect(0,0,600,400);
pincel.fillStyle = "green";
pincel.fillRect(30,40,700,500);
pincel.fillStyle = "yellow";
pincel.beginPath();
pincel.moveTo(320,375);
pincel.lineTo(90, 230);
pincel.lineTo(550,230);
pincel.fill();
pincel.fillStyle = "yellow";
pincel.beginPath();
pincel.moveTo(320,70);
pincel.lineTo(550,230);
pincel.lineTo(90,230);
pincel.fill();
pincel.fillStyle = "darkblue";
pincel.beginPath();
pincel.arc(320,220,100,0,2*3.14);
pincel.fill();
</script>