Fledex.Color.Conversion.Approximate (fledex v0.8.0)

Copy Markdown View Source

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

rgb2hsv(arg)

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.