Using Canvas to Change Photo Colors (Windows) | Microsoft Learn
canvas element.canvas = document.getElementById("myCanvas");// Make sure you got it.if(canvas.getContext) {// Specify 2d canvas type.ctx = canvas.getContext("2d");// When the image is loaded, draw it.myImage.on