# Changing brightness in video

**URL:** https://discourse.processing.org/t/changing-brightness-in-video/20524
**Category:** Processing.py
**Created:** [May 6, 2020, 1:22am UTC](https://discourse.processing.org/t/changing-brightness-in-video/20524 "2020-05-06T01:22:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cupofcalculus](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@cupofcalculus](https://discourse.processing.org/u/cupofcalculus)
#### Post date: [May 6, 2020, 1:22am UTC](https://discourse.processing.org/t/changing-brightness-in-video/20524/1 "2020-05-06T01:22:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 8, 2020, 12:15am UTC](https://discourse.processing.org/t/changing-brightness-in-video/20524/2 "2020-05-08T00:15:00Z")

</div>

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/tint.html)  
[https://py.processing.org/reference/blendMode.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.
