Lines Matching refs:rFrom
327 static Color approachColor( const Color& rFrom, const Color& rTo ) in approachColor() argument
332 if( rFrom.GetRed() < rTo.GetRed() ) in approachColor()
334 nDiff = rTo.GetRed() - rFrom.GetRed(); in approachColor()
335 aColor.SetRed( rFrom.GetRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
337 else if( rFrom.GetRed() > rTo.GetRed() ) in approachColor()
339 nDiff = rFrom.GetRed() - rTo.GetRed(); in approachColor()
340 aColor.SetRed( rFrom.GetRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
343 aColor.SetRed( rFrom.GetRed() ); in approachColor()
346 if( rFrom.GetGreen() < rTo.GetGreen() ) in approachColor()
348 nDiff = rTo.GetGreen() - rFrom.GetGreen(); in approachColor()
349 aColor.SetGreen( rFrom.GetGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
351 else if( rFrom.GetGreen() > rTo.GetGreen() ) in approachColor()
353 nDiff = rFrom.GetGreen() - rTo.GetGreen(); in approachColor()
354 aColor.SetGreen( rFrom.GetGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
357 aColor.SetGreen( rFrom.GetGreen() ); in approachColor()
360 if( rFrom.GetBlue() < rTo.GetBlue() ) in approachColor()
362 nDiff = rTo.GetBlue() - rFrom.GetBlue(); in approachColor()
363 aColor.SetBlue( rFrom.GetBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
365 else if( rFrom.GetBlue() > rTo.GetBlue() ) in approachColor()
367 nDiff = rFrom.GetBlue() - rTo.GetBlue(); in approachColor()
368 aColor.SetBlue( rFrom.GetBlue() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
371 aColor.SetBlue( rFrom.GetBlue() ); in approachColor()