In this chapter I’ll show how to use the canvas element in HTML5 to create some fun graphics. As you’ll see, it is very different from SVG, which you explored in the previous chapter. I will discuss the differences in more detail later, but the main thing you’ll notice is that canvas is completely implemented in JavaScript. The only part that is in the markup is a simple element definition like this:


Solar System Previous Chapter Source Element Drawing Function Chess Board 

Copyright information

© Mark J. Collins 2015

Authors and Affiliations

  • Mark J. Collins
    • 1
  1. 1.VAUS

Personalised recommendations