hsbToRgb
Converts an HSB(A) color (also called HSV), as shown by design tool color pickers, into RGB(A).
Available since v3.1.5
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
color | HsbColor | The color to convert: `h` in degrees (any value, wrapped into 0-360), `s`/`b` in 0-100, `a` defaults to 1 (opaque) when omitted. |
Returns
Section titled “Returns”RgbColor — The equivalent RGB(A) color, channels rounded to integers in 0-255
Examples
Section titled “Examples”Convert a design tool color
Section titled “Convert a design tool color”From the HSB values of a color picker to RGB.
Darker shade
Section titled “Darker shade”Lower the brightness to darken without changing the hue.
Related Types
Section titled “Related Types”HsbColor
Section titled “HsbColor”An HSB(A) color (also called HSV), the model of design tool color pickers.
RgbColor
Section titled “RgbColor”An RGB(A) color with channels expressed as plain numbers, convenient for further conversion or manipulation.
