MCPcopy Create free account
hub / github.com/devforth/painterro / regetColor

Method regetColor

js/colorPicker.js:138–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137
138 regetColor() {
139 const p = this.ctxLight.getImageData(this.lightPosition, 5, 1, 1).data;
140 this.setActiveColor(rgbToHex(p[0], p[1], p[2]));
141 this.drawAlpher();
142 }
143
144 regetAlpha() {
145 const p = this.ctxAlpha.getImageData(this.alphaPosition, 5, 1, 1).data;

Callers 3

openMethod · 0.95
getColorLightAtClickMethod · 0.95

Calls 3

setActiveColorMethod · 0.95
drawAlpherMethod · 0.95
rgbToHexFunction · 0.85

Tested by

no test coverage detected