# Get HSB-mode saturation of a color constructed in RGB

**URL:** <https://discourse.processing.org/t/get-hsb-mode-saturation-of-a-color-constructed-in-rgb/33674>\
**Category:** Coding Questions\
**Created:** [November 22, 2021, 9:32pm UTC](https://discourse.processing.org/t/get-hsb-mode-saturation-of-a-color-constructed-in-rgb/33674 "2021-11-22T21:32:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 23, 2021, 11:06pm UTC](https://discourse.processing.org/t/get-hsb-mode-saturation-of-a-color-constructed-in-rgb/33674/4 "2021-11-23T23:06:05Z")

</div>

Hello,

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):
>
> I’ve swicthed to p5.js from Procesisng.js today (I’ll miss that dude) and already encountered a problem. get() returns an RGB value but my canvas is set to HSB mode. As far as I remember that wasn’t happening when I was working with Processing.js; it used to return according to the colorMode of the sketch. Is there a way to convert it?

`:)`

---

_[View the full topic](https://discourse.processing.org/t/get-hsb-mode-saturation-of-a-color-constructed-in-rgb/33674)._
