Advanced Photo Editor

Basic Features

Step 9: In the example, copy where the pixel's red value is modified into your for loop. Modify what you copied to increase the red value. Example of increasing the red value by 10:
for (let i = 0; i < imageData.data.length; i += 4) {
  imageData.data[i + 0] += 10
}
You will put the modified image data back on the canvas in the next step.
Last step Next step