Learn creative coding writing simple programs

89. Create your own photo filters

In the previous episode we used the pixels array for the first time. We wrote random shades of gray to every pixel. The result was an animation that looked like an analog TV that lost the signal.
This time, instead of replacing every single pixel with random values, we read the red, green and blue values of each pixel, and then modify those values. By doing this we can tint the image or convert it into a black and white image.

Tags: pixels, filter, channel

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus