Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
One of the most exciting additions that HTML5 offers to designers is the ability to draw free-form graphics on a drawing surface known as the Canvas. In this course, author Joe Marini introduces the technical concepts behind Canvas and shows how to perform drawing operations directly in a web page. The course covers drawing basic and complex shapes, setting colors and styles, adding shadows, patterns, and gradients, more advanced techniques such as scaling, rotating, and compositing objects, and how to incorporate Canvas elements in a slideshow and an animation.
Okay, the next example we are going to look at is Pirates Love Daisies. Pirates Love Daisies is a game that was produced using just HTML5 canvas and native web technologies. You've probably seen games like this before. It's a classic tower defense game where you have to defend something against a wave of oncoming bad guys, probably something along the lines of Plants Versus Zombies is a pretty famous one. In this case, you are the pirates, and there's a group of mean sea creatures that are trying to come and steal your daisies, and that's the premise of the game.
And it's a pretty great little game. The pirates are defending the daisies up here. This is just implemented using canvas. This is HTML5 canvas using native web technologies. There's no Silverlight here. There is no Flash involved, and it's a pretty good example of what you can do using canvas.
There are currently no FAQs about HTML5: Graphics and Animation with Canvas.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.