@tempots/color

rgb2hsv() function

Converts an RGB color value to its corresponding HSV representation.

Signature:

rgb2hsv: (rgb: RGB) => HSV

Parameters

Parameter

Type

Description

rgb

RGB

The RGB color value to convert.

Returns: HSV

The HSV representation of the given RGB color value.