HTML and CSS Reference
Figure 6.3. The invisible Cartesian graph where Canvas drawings are created. Notice that the x and y coordinates
begin in the top left and the y-axis increments downward.
6.1.2. Generating a Canvas context
element's DOM data.
Preparing the canvas for your game
Start by opening a text editor to create a document called index.html. Inside your document
place a <canvas> tag in the <body> with id , width , and height attributes, as shown