@tempots/color

srgb2hsv() function

Converts an sRGB color to HSV color space.

Signature:

srgb2hsv: (srgb: SRGB) => HSV

Parameters

Parameter

Type

Description

srgb

SRGB

The sRGB color to convert.

Returns: HSV

The HSV representation of the sRGB color.