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

Method drawLighter

js/colorPicker.js:307–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 }
306
307 drawLighter() {
308 const lightGradient = this.ctxLight.createLinearGradient(0, 0, this.w, 0);
309 lightGradient.addColorStop(0, '#ffffff');
310 lightGradient.addColorStop(0.05, '#ffffff');
311 lightGradient.addColorStop(0.95, this.palleteColor);
312 lightGradient.addColorStop(1, this.palleteColor);
313 this.ctxLight.fillStyle = lightGradient;
314 this.ctxLight.fillRect(0, 0, this.w, 15);
315 }
316
317 drawAlpher() {
318 this.ctxAlpha.clearRect(0, 0, this.w, 15);

Callers 2

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected