# 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:** 2

<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, 12:14am UTC](https://discourse.processing.org/t/adjusting-pixel-brightness-value-of-an-image/42343/2 "2023-07-05T00:14:49Z")

</div>

Hello @glosoli3,

A related topic:

> [@Get() returns RGB values while the colorMode is set to HSB](https://discourse.processing.org/t/get-returns-rgb-values-while-the-colormode-is-set-to-hsb/22827/8):
>
> [https://p5js.org/reference/#/p5/get](https://p5js.org/reference/#/p5/get) Returns an array of [R,G,B,A] values for any pixel get(x, y) [https://p5js.org/reference/#/p5/hue](https://p5js.org/reference/#/p5/hue) Extracts the hue value from a color or pixel array. Hue exists in both HSB and HSL. This function will return the HSB-normalized hue when supplied with an HSB color object (or when supplied with a pixel array while the color mode is HSB) I tested this and it works for H and B but did not seem to give correct value for S. A little exploration lead me to …

`:)`

---

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