Advanced Photo Editor

Basic Features

Step 5: Make controls to change the red, green, and blue values of every pixel in the image.
Hint: Get the red, green, and blue values with the getImageData method.
Hint: First make a function to increase the red value of every pixel in the image. In that function, copy the syntax for getting image data, and call the method on your context variable. Use the one with four parameters only:
context.getImageData(sx, sy, sw, sh)
Last step Next step