+ All Categories
Home > Education > Aula 4 - Canvas

Aula 4 - Canvas

Date post: 16-Apr-2017
Category:
Upload: allyson-souza
View: 411 times
Download: 0 times
Share this document with a friend
15
Transcript

var canvas = document.getElementById("game");

var contexto = canvas.getContext("2d");

var image = document.getElementById('boi');

contexto.drawImage(image, 0, 0);

<body>

<canvas id="game" width="800"height="600">

<img id="boi" src="images/boizinho.png"width="481" height="640">

</canvas>

<script type="text/javascript"src="js/game.js"></script>

</body>


Recommended