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.
Another really great example of using HTML5 canvas to accomplish things that used to require native applications is Sketchpad. And you can see the URL up there is mugtug.com/sketchpad. This is a drawing application created using HTML5 canvas, and I'm going to just do some stuff, like I can select the ellipse, and I can draw the ellipse on the canvas here, and I can use the brush and I can draw things. And you can see that I've got various settings in these windows down here. So, I can change all kinds of things. I can change colors.
I can even do advanced operations like cropping. So, this is a cropping tool. I am going to drag out a little cropping rectangle here and hit Enter, and you can see that by using the canvas, I'm able to grab subsets of images that have been drawn, draw them in to entirely new canvases. This is actually a really powerful application. You can see also up here I have other windows I can drag out. So this is a great example of something that used to require a native application to do and it's been implemented entirely using canvas and HTML5 technologies.
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.