This module defines the conversion from RGB to HSV.
The conversion is not perfect, since it's trimmed for performance and not for 100% accuracy. Hence the module name.
Summary
Functions
convert an RGB tuple ({r, g, b}) to a Fledex.Color.HSV struct.
Functions
@spec rgb2hsv(Fledex.Color.Types.rgb()) :: Fledex.Color.Types.hsv()
convert an RGB tuple ({r, g, b}) to a Fledex.Color.HSV struct.
Note:
This conversion is only an approximation, hence the name of the module, optimized rather for speed than for accuracy.