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

Method regetAlpha

js/colorPicker.js:144–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 }
143
144 regetAlpha() {
145 const p = this.ctxAlpha.getImageData(this.alphaPosition, 5, 1, 1).data;
146 this.alpha = p[3] / 255;
147 this.setActiveColor(this.color, true);
148 }
149
150 getColorLightAtClick(e) {
151 let x = e.clientX - this.canvasLight.documentOffsetLeft;

Callers 1

getAlphaAtClickMethod · 0.95

Calls 1

setActiveColorMethod · 0.95

Tested by

no test coverage detected