MCPcopy
hub / github.com/shzlw/zeu / fillRect

Method fillRect

src/shape.js:20–25  ·  view source on GitHub ↗

* Create a filled rectangle * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @param {string} fillStyle

(x1, y1, x2, y2, fillStyle)

Source from the content-addressed store, hash-verified

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

Callers 15

drawObjectMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
alertFuncMethod · 0.80
clearMethod · 0.80
drawObjectMethod · 0.80
drawColonMethod · 0.80
topLeftMethod · 0.80
bottomLeftMethod · 0.80
topRightMethod · 0.80
bottomRightMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected