1
resposta

Desafio creeper

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

<script>
    //APIs
var tela = document.querySelector('canvas');
var pincel = tela.getContext('2d');

    //head
pincel.fillStyle = 'pink';
    pincel.fillRect(0, 0, 350, 300);

    //rigth eye
    pincel.fillStyle = 'black';
    pincel.fillRect(200, 50, 90, 90);

    //left eye
    pincel.fillStyle = 'black';
    pincel.fillRect(50, 50, 90, 90);

    //nose
    pincel.fillStyle = 'black';
    pincel.fillRect(134, 140, 70, 100);

    //mouth
    pincel.fillStyle = 'black';
    pincel.fillRect(200, 190, 40, 110);

    //mouth
    pincel.fillStyle = 'black';
    pincel.fillRect(100, 190, 40, 110);

</script>
1 resposta

Muito bom! Deixou bem comentado!

Parabéns pelo empenho nos estudos!

Continue praticando e qualquer dúvida pode contar com a gente.