Update index.php
This commit is contained in:
parent
1f48f97af4
commit
63901bc6ee
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@
|
||||||
|
|
||||||
// not best method, ideally want to create an array and then merge
|
// not best method, ideally want to create an array and then merge
|
||||||
for (let i = 0; i < canvasData.data.length; i += 4) {
|
for (let i = 0; i < canvasData.data.length; i += 4) {
|
||||||
if (canvasData.data[i] == 0) {
|
if (canvasData.data[i+3] == 255) {
|
||||||
bits.value += "1";
|
bits.value += "1";
|
||||||
} else {
|
} else {
|
||||||
bits.value += "0";
|
bits.value += "0";
|
||||||
|
|
Reference in a new issue