Lines Matching refs:rFrom
1011 static basebmp::Color approachColor( const basebmp::Color& rFrom, const basebmp::Color& rTo ) in approachColor() argument
1016 if( rFrom.getRed() < rTo.getRed() ) in approachColor()
1018 nDiff = rTo.getRed() - rFrom.getRed(); in approachColor()
1019 aColor.setRed( rFrom.getRed() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1021 else if( rFrom.getRed() > rTo.getRed() ) in approachColor()
1023 nDiff = rFrom.getRed() - rTo.getRed(); in approachColor()
1024 aColor.setRed( rFrom.getRed() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1027 aColor.setRed( rFrom.getRed() ); in approachColor()
1030 if( rFrom.getGreen() < rTo.getGreen() ) in approachColor()
1032 nDiff = rTo.getGreen() - rFrom.getGreen(); in approachColor()
1033 aColor.setGreen( rFrom.getGreen() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1035 else if( rFrom.getGreen() > rTo.getGreen() ) in approachColor()
1037 nDiff = rFrom.getGreen() - rTo.getGreen(); in approachColor()
1038 aColor.setGreen( rFrom.getGreen() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1041 aColor.setGreen( rFrom.getGreen() ); in approachColor()
1044 if( rFrom.getBlue() < rTo.getBlue() ) in approachColor()
1046 nDiff = rTo.getBlue() - rFrom.getBlue(); in approachColor()
1047 aColor.setBlue( rFrom.getBlue() + ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1049 else if( rFrom.getBlue() > rTo.getBlue() ) in approachColor()
1051 nDiff = rFrom.getBlue() - rTo.getBlue(); in approachColor()
1052 aColor.setBlue( rFrom.getBlue() - ( nDiff < 10 ? nDiff : 10 ) ); in approachColor()
1055 aColor.setBlue( rFrom.getBlue() ); in approachColor()