php bad, js good

This commit is contained in:
awesomeuser 2023-08-04 17:59:41 +00:00
parent 6e8753b5ca
commit b543725d58

View file

@ -102,7 +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) {
if (substr(bits, i/4, 1) == "1") { if (bits.substring(i/4, 1) == "1") {
copy.data[i+3] = 255; copy.data[i+3] = 255;
} }
} }