Saturday, July 8, 2017

How To Animate Html5



now that we have a loaded image, we need to draw that image to the canvas via the canvas.drawimage api. this function takes the image object itself as well as the locations on the canvas that we'd like to draw that image. as you can see, there are some other parameters that drawimage takes. don't worry about those just yet. for now you can leave those blank. by the way, if you are ever


How To Animate Html5, interested in finding out more about an api for html5 development, make sure you check out webplatform.org. it's a nifty little space where all your questions can be answered. for our next step, why don't you go ahead and fill in the onload function that we defined earlier. so that rather than logging a


message to the console, instead, it draws the image at pixel location 192 by 192.


No comments:

Post a Comment

Up