<canvas width="600" height="400"></canvas>
<script>
var tela=document.querySelector("canvas");
var pincel=tela.getContext('2D');
pincel.fillStyle = 'lightgrey';
pincel.fillRect(0, 0, 600, 400);
</script>
<canvas width="600" height="400"></canvas>
<script>
var tela=document.querySelector("canvas");
var pincel=tela.getContext('2D');
pincel.fillStyle = 'lightgrey';
pincel.fillRect(0, 0, 600, 400);
</script>
Fala Anderson tudo certo ?
O d
é minúsculo
var pincel=tela.getContext('2d');
Obrigado.