HSVtoRGB()

From Valve Developer Community
Revision as of 13:03, 5 May 2010 by TomEdwards (talk | contribs) (Created page with ''''<code>HSVtoRGB()</code>''' converts a Hue, Saturation, Value color to a Red, Green, Blue one. <source lang=cpp>HSVtoRGB(const Vector& HSV, V…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)