Understanding Coordinates The fillRect method above had the parameters (0,0,150,75). This means: Draw a 150×75 rectangle on the canvas, starting at the top left corner (0,0). The canvas’ X and Y coordinates are used to position drawings on the canvas. More Canvas Examples Below are more examples of drawing on the canvas element: - [...]
Go to post pageJuly 17th, 2010 by earlan
