Draw behind existing shapes with "destination-over"

suggest change
context.globalCompositeOperation = "destination-over"

“destination-over” compositing places new drawing under existing drawings.

context.drawImage(rainy,0,0);
context.globalCompositeOperation='destination-over';  // sunny UNDER rainy
context.drawImage(sunny,0,0);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents