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

Method fillText

src/shape.js:56–63  ·  view source on GitHub ↗

* Create a filled text * @param {string} text * @param {number} x * @param {number} y * @param {string} font * @param {string} textAlign * @param {string} fillStyle

(text, x, y, font, textAlign, fillStyle)

Source from the content-addressed store, hash-verified

54 * @param {string} fillStyle
55 */
56 fillText(text, x, y, font, textAlign, fillStyle) {
57 this._ctx.beginPath();
58 this._ctx.font = font;
59 this._ctx.textAlign = textAlign;
60 this._ctx.fillStyle = fillStyle;
61 this._ctx.fillText(text, x, y);
62 this._ctx.closePath();
63 }
64
65 /**
66 * Create a line

Callers 11

drawHexMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
alertFuncMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
drawObjectMethod · 0.80
drawMinMethod · 0.80
drawMaxMethod · 0.80
drawMarkerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected