Update index.php

This commit is contained in:
awesomeuser 2023-08-04 15:56:34 +00:00
parent 1f48f97af4
commit 63901bc6ee

View file

@ -140,7 +140,7 @@
// not best method, ideally want to create an array and then merge
for (let i = 0; i < canvasData.data.length; i += 4) {
if (canvasData.data[i] == 0) {
if (canvasData.data[i+3] == 255) {
bits.value += "1";
} else {
bits.value += "0";