make data off ctx

This commit is contained in:
awesomeuser 2023-08-04 15:57:45 +00:00
parent 63901bc6ee
commit 97e39c0f9b

View file

@ -135,7 +135,7 @@
document.onmouseup = function() { document.onmouseup = function() {
drawing = false; drawing = false;
// write image-bits for posting // write image-bits for posting
let canvasData = canvas.getImageData(0, 0, 128, 64); let canvasData = ctx.getImageData(0, 0, 128, 64);
bits.value = ""; bits.value = "";
// not best method, ideally want to create an array and then merge // not best method, ideally want to create an array and then merge