Canvas is useful when using images and shapes in JavaScript. Since there are similar methods, let's organize the differences. "rect" and "fillRect" can both be used to draw rectangles. "rect" allows ...
A Rect describes an axis-aligned rectangle by specifying the coordinates of its upper left and lower right corners. In Javascript they are represented by a 4-element array: [minX, minY, maxX, maxY] ...