Update index.php
This commit is contained in:
parent
093fb3766d
commit
ce3acc7fcc
1 changed files with 1 additions and 2 deletions
|
@ -102,8 +102,7 @@
|
||||||
|
|
||||||
const copy = ctx.createImageData(128, 64);
|
const copy = ctx.createImageData(128, 64);
|
||||||
for (let i = 0; i < copy.data.length; i += 4) {
|
for (let i = 0; i < copy.data.length; i += 4) {
|
||||||
console.log(i/4);
|
if (bits[i/4] === "1") {
|
||||||
if (bits.substring(i/4, 1) === "0") {
|
|
||||||
copy.data[i+3] = 255;
|
copy.data[i+3] = 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue