# Adjusting pixel brightness value of an image

**URL:** <https://discourse.processing.org/t/adjusting-pixel-brightness-value-of-an-image/42343>\
**Category:** Coding Questions\
**Created:** [July 4, 2023, 11:52pm UTC](https://discourse.processing.org/t/adjusting-pixel-brightness-value-of-an-image/42343 "2023-07-04T23:52:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 5, 2023, 2:26am UTC](https://discourse.processing.org/t/adjusting-pixel-brightness-value-of-an-image/42343/6 "2023-07-05T02:26:00Z")

</div>

Another related topic:

> [@Get HSB-mode saturation of a color constructed in RGB](https://discourse.processing.org/t/get-hsb-mode-saturation-of-a-color-constructed-in-rgb/33674):
>
> If I set colorMode(RGB) and create a color c, then get saturation(c), it always gives me the HSL-mode saturation number, which is different from the HSB-mode number. I can’t think of any way to get the HSB-mode saturation of an RGB color. I know the algorithm to do it, so I could write my own function, but if someone doesn’t know that, it doesn’t seem possible. Is there no function that can convert a color from any mode to any other mode?

`:)`

---

_[View the full topic](https://discourse.processing.org/t/adjusting-pixel-brightness-value-of-an-image/42343)._
