View this code at http://livecoding.io/3449453
Created
August 24, 2012 11:30
-
-
Save andrepadez/3449453 to your computer and use it in GitHub Desktop.
created by http://livecoding.io/3449453
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"libraries":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tileGame {width:600px; height:600px; border: 1px solid} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="tileGame"></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctx = document.getElementById('tileGame').getContext('2d'); | |
var imageUrl = 'http://fc06.deviantart.net/fs70/f/2012/104/0/8/angierk_ask_blog_icon_bla_bla_bla_lol_by_standardangie-d4w5n71.png'; | |
var image = new Image(); | |
image.width = "500px"; | |
image.height="500px"; | |
image.src = imageUrl; | |
ctx.drawImage(image, 0, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment