Strange problem with drawImageURL()

I have been working on an “infinite zooming” Mandelbrot set plotter for my nephew, but, I’ve been having problems with the drawImageURL() function. Specifically, after I draw a background image with said function, and then, when I try to draw something on top of the background, what I try to draw never shows up. Here is the code :

createCanvas("1", 320, 450);
var image1;
var image2;
image1 = getImageData(0, 0, 320, 450);
image2 = image1;
//drawImageURL("https://i209.photobucket.com/albums/bb286/wqo2/Code%20dot%20org/mandelbrot_zpshdyinvkd.png");
//setStrokeColor("white");
//setFillColor("white");
setStrokeColor("black");
setFillColor("black");
rect(0, 0, 160, 225);
//createCanvas("2", 320, 450);
//putImageData(image2, 0, 0);

You can also find the code here :

Without the above code working, I can’t save the imageData for the current canvas and let the user select another region into which to zoom in the current plot.

Does anyone know what the problem might be?

Thanks and regards,

jdb2

3 posts were merged into an existing topic: Problems with imagedata