Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Info
  3. Community
  4. Development
  5. myReactOS

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

double HueToRGB ( const double  m1,
const double  m2,
double  h 
)

Definition at line 69 of file cardcolor.cpp.

Referenced by HLStoRGB().

00070 {
00071     if (h<0) h+=1.0;
00072     if (h>1) h-=1.0;
00073     if (6.0*h < 1  ) return (m1+(m2-m1)*h*6.0);
00074     if (2.0*h < 1  ) return m2;
00075     if (3.0*h < 2.0) return (m1+(m2-m1)*((2.0/3.0)-h)*6.0);
00076     return m1;
00077 }


Generated on Thu Mar 18 09:35:14 2010 for ReactOS by doxygen 1.6.2

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.