Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Meu Creeper

<canvas width="600" height="400"></canvas>

<script>

    var tela = document.querySelector('canvas');
    var pincel = tela.getContext('2d');

    pincel.fillStyle = 'darkgreen'
    pincel.fillRect(120, 0, 350, 300);

    pincel.fillStyle = 'black'
    pincel.fillRect (170, 50, 90, 90);

    pincel.fillStyle = 'black'
    pincel.fillRect (330, 50, 90, 90);    

    pincel.fillStyle = 'black'
    pincel.fillRect (260, 140, 70, 100);

    pincel.fillStyle = 'black'
    pincel.fillRect (220, 190, 40, 110);

    pincel.fillStyle = 'black'
    pincel.fillRect (330, 190, 40, 110);    
</script>
2 respostas
solução!
<canvas width="600" height="400"></canvas>

<script>

    var tela = document.querySelector('canvas');
    var pincel = tela.getContext('2d');

    pincel.fillStyle = 'darkgreen'
    pincel.fillRect(120, 0, 350, 300);

    pincel.fillStyle = 'black'
    pincel.fillRect (170, 50, 90, 90);

    pincel.fillStyle = 'black'
    pincel.fillRect (330, 50, 90, 90);    

    pincel.fillStyle = 'black'
    pincel.fillRect (260, 140, 70, 100);

    pincel.fillStyle = 'black'
    pincel.fillRect (220, 190, 40, 110);

    pincel.fillStyle = 'black'
    pincel.fillRect (330, 190, 40, 110);    
</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);

     pincel.fillStyle = 'darkgreen';
    pincel.fillRect(0, 0, 350, 300);

    pincel.fillStyle = 'black';
    pincel.fillRect(52, 50, 90, 90);

    pincel.fillStyle = 'black';
    pincel.fillRect(213, 50, 90, 90);

    pincel.fillStyle = 'black';
    pincel.fillRect(143, 140, 70, 100);

    pincel.fillStyle = 'black';
    pincel.fillRect(103, 190, 40, 110);

    pincel.fillStyle = 'black';
    pincel.fillRect(213, 190, 40, 110);



</script>