# Help with Processing Brightness Example

**URL:** <https://discourse.processing.org/t/help-with-processing-brightness-example/31366>\
**Category:** Beginners\
**Created:** [July 21, 2021, 2:54pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366 "2021-07-21T14:54:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jih](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jih](https://discourse.processing.org/u/jih)\
**Post date:** [July 21, 2021, 2:54pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366/1 "2021-07-21T14:54:57Z")

</div>

[https://processing.org/examples/brightness.html](https://processing.org/examples/brightness.html)

hello, I’m studying with this tutorial.

almost last line,

pixels[y\*width+x] = c; \<\<

ArrayIndexOutOfBoundsException: 230400

error…

Please let me know how. Thank you.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [July 21, 2021, 3:20pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366/2 "2021-07-21T15:20:35Z")

</div>

I think that the image must be exactly the same size as the window

---

<div class="post-metadata">

**Author:** ![jih](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jih](https://discourse.processing.org/u/jih)\
**Post date:** [July 21, 2021, 9:37pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366/3 "2021-07-21T21:37:48Z")

</div>

Thanks to you, I’ve solved it. 😁 😁
