Definition at line 153 of file cardcolor.cpp.
Referenced by CardButton::GetFace(), CardButton::GetHighlight(), CardButton::GetShadow(), GetSinkCols(), and CardWindow::SetBackColor().
00155 {
00156 int R1=(Col1)&0xFF, G1=(Col1>>8)&0xFF, B1=(Col1>>16)&0xFF;
00157 int R2=(Col2)&0xFF, G2=(Col2>>8)&0xFF, B2=(Col2>>16)&0xFF;
00158
00159 if (Ratio<=0) return Col1;
00160 else if (Ratio>=1) return Col2;
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178 return RGB(
00179 (R1 + (R2 - R1) * (Ratio + 0.02) + 0.5),
00180 (G1 + (G2 - G1) * (Ratio - 0.00) + 0.5),
00181 (B1 + (B2 - B1) * (Ratio + 0.05) + 0.5)
00182 );
00183 }