* Create a filled rectangle * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {string} fillStyle
(x1, y1, x2, y2, fillStyle)
| 18 | * @param {string} fillStyle |
| 19 | */ |
| 20 | fillRect(x1, y1, x2, y2, fillStyle) { |
| 21 | this._ctx.beginPath(); |
| 22 | this._ctx.fillStyle = fillStyle; |
| 23 | this._ctx.fillRect(x1, y1, x2, y2); |
| 24 | this._ctx.closePath(); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Create a filled triangle |
no outgoing calls
no test coverage detected