SOLVED - my code was correct, but my canvas positioning was offset.
Hello,
I am trying to create the following.
The user uploads an image (250x250 pixels)
The image object (displayPicture) then is pasted onto the canvas. However, the snapshot is empty....
Where did my code go wrong???
The canvas saves a snapshot, then redraws the picture beneath it.
This is done by reading the rgb colors, and reproducing them on the second drawing canvas.
When I run debug, the instance variables that would show the RGB color results remain zero.
project file
gofile.io/d/0Ui8js