Function: rgbToSrgb()
rgbToSrgb(
rgb
):SRGB
Converts RGB color values to sRGB color space.
Parameters
Parameter | Type | Description |
---|---|---|
rgb | RGB | The RGB color to convert. |
Returns
The color in sRGB color space.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/srgb.ts:9