MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fillRectangle

Method fillRectangle

modules/io/firmata/firmataclient.js:697–699  ·  view source on GitHub ↗
(color, x, y, width, height)

Source from the content-addressed store, hash-verified

695 return ((r >> 1) << 14) | ((g >> 1) << 7) | (b >> 1); // RGB 7:7:7
696 }
697 fillRectangle(color, x, y, width, height) {
698 this.#firmata.doPocoFillRectangle(color, x, y, width, height);
699 }
700 drawPixel(color, x, y) {
701 this.#firmata.doPocoDraw(color, x, y);
702 }

Callers 5

mainFunction · 0.95
mainFunction · 0.95
offscreenFunction · 0.95
onReadyFunction · 0.95
onReadyxFunction · 0.95

Calls 1

doPocoFillRectangleMethod · 0.80

Tested by

no test coverage detected