Home | Info | Community | Development | myReactOS | Contact Us
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 }