Color Conversion Utilities

The following global functions are for color conversion between color formats. These functions are defined in .h.

The supported color formats are:

  • RGB - red, green, blue
  • HSV - hue, saturation, value
  • HWBt - hue, whiteness, blackness.

Conversion functions:

  • RGBtoHSV() - Converts the specified color in RGB format to HSV format.
  • HSVtoRGB() - Converts the specified color in HSV format to RGB format.
  • HSVtoHWBt() - Converts the specified color in HSV format to HWBt format.
  • HWBttoHSV() - Converts the specified color in HWBt format to HSV format.