make data off ctx
This commit is contained in:
parent
63901bc6ee
commit
97e39c0f9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue