Update index.php
This commit is contained in:
parent
dca193a823
commit
b4b5bd0ccb
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@
|
||||||
const ctx = canvas.getContext("2d");
|
const ctx = canvas.getContext("2d");
|
||||||
|
|
||||||
const copy = ctx.createImageData(128, 64);
|
const copy = ctx.createImageData(128, 64);
|
||||||
for (let i = 0; i < pen.data.length; i++) {
|
for (let i = 0; i < pen.data.length; i += 4) {
|
||||||
copy.data[(i*4)+3] = 255;
|
copy.data[i+3] = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.putImageData(copy, 0, 0);
|
ctx.putImageData(copy, 0, 0);
|
||||||
|
|
Reference in a new issue