HSVtoRGB()

From Valve Developer Community
Jump to navigation Jump to search

HSVtoRGB() converts a Hue, Saturation, Value color to a Red, Green, Blue one.

HSVtoRGB(const Vector& HSV, Vector& RGB);

The values of the HSV Vector are not immediately obvious:

  • float Hue (range 0-360)
  • normal Saturation (range 0-1)
  • normal Value (range 0-1)