Catching up on the tutorials….
Highlights from code :
// Loop through every 50th pixel for(let x = 0; x < width; x+=40) { for(let y = 0; y < height; y+=40) { // Get the color at this x,y location // Calculate the corresponding index-values in the pixels array. let i = (y*cam.width + x)*4;