Closed gelse closed 2 years ago
Yeah I had the same issue. It looks like the variable color
isn't defined in any of the drawing functions for Inkplate.js but a function parameter c
is. So I added this line to the top of each drawing function in Inkplate.js: let color = c ?? this.color;
. That will correctly use the function param or fallback to the color value defined in the class if c
is not defined. I'll try and make a pull request as well
Thanks for letting us know, I think I've fixed this now, if it persists please reopen the issue.
Browsers: both Firefox and Chromium
Reproduction:
Found exceptions:
document.getElementById("imageFile").onchange = ...
ReferenceError: color is not defined