Function: rgbToHsv()
rgbToHsv(
rgb
):HSV
Converts RGB values to HSV values.
Parameters
Parameter | Type | Description |
---|---|---|
rgb | RGB | An object with r, g, and b properties. |
Returns
An object with h, s, and v properties.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/hsv.ts:58