cleanup code
This commit is contained in:
parent
7a1537ddfa
commit
1321af0bc1
|
@ -49,9 +49,6 @@
|
|||
if (y == 0)
|
||||
pixelNumber = x
|
||||
|
||||
// for (let l = 0; l < 5; l ++)
|
||||
// for (let i = 0; i < 4; i ++)
|
||||
// imgData.data[pixelNumber+i] = 127
|
||||
let rgbColor = hexToRgb(currentColor);
|
||||
for (let l = 0; l < 5; l ++){
|
||||
imgData.data[pixelNumber + 0] = rgbColor.r;
|
||||
|
|
Loading…
Reference in New Issue