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

  1. Home
  2. Community
  3. Development
  4. 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

COLORREF ColorScaleHSL ( const COLORREF  Col1,
const COLORREF  Col2,
const double  Ratio 
)

Definition at line 130 of file cardcolor.cpp.

Referenced by ColorDarker(), and ColorLighter().

00131 {
00132     static double H1, H2, S1, S2, L1, L2;
00133 
00134     if (Ratio<=0) return Col1;    // Ratio parameter must be between 0 and 1
00135     else if (Ratio>=1) return Col2;
00136 
00137     RGBtoHLS( Col1, &H1, &L1, &S1);
00138     RGBtoHLS( Col2, &H2, &L2, &S2);
00139     return HLStoRGB( H1+(H2-H1)*Ratio, L1+(L2-L1)*Ratio, S1+(S2-S1)*Ratio );
00140 }


Generated on Thu Feb 9 06:09:19 2012 for ReactOS by doxygen 1.6.3

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