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] ...
JavaScriptで画像、図形を使うときに便利なCanvas。同じようなものがあるので違いを整理。 "rect"と"fillRect"同じく四角を書くことができるものです。 "rect"は四角を線と塗りを指定して描画できる。