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

Method makeColor

modules/io/firmata/firmataclient.js:694–696  ·  view source on GitHub ↗
(r, g, b)

Source from the content-addressed store, hash-verified

692 this.#firmata.doPocoOrigin(x, y);
693 }
694 makeColor(r, g, b) {
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 }

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected