Changing brightness in video

I know how to iterate over an image, finding the color of each pixel, and modifying it. Is there’s an easier method to adjust the brightness of a video, namely so that it doesn’t cause the video to lag?

1 Like

You could also use tint() – or use blendMode() when drawing the video over a white background. Either can achieve a brightening effect on an image or video frame.

https://py.processing.org/reference/tint.html
https://py.processing.org/reference/blendMode.html

I am not sure how these approaches perform compared to iterating over pixels[] – but try them and see.

2 Likes