Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var cx = document.querySelector("canvas").getContext("2d");
- var tile_ice01 = document.createEl<script>ement("tile_ice01");
- tile_ice01.src = "tile_ice01.png";
- tile_ice01.addEventListener("load", function(){
- for (var x = 10; x < 200; x += 30)
- cx.drawImage(tile_ice01, x, 10);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment