Happy Coding

Image Filter

This sketch loops over every pixel in an image, and for each pixel it calculates a new color based on the original color. This is one way image filters are made! To play around, try changing the getFilterColor(r, g, b) function below!

This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/images/image-filter