@ -62,17 +62,15 @@ public class DrawableUtils {
@@ -62,17 +62,15 @@ public class DrawableUtils {
public static int mixColor ( float fraction , int startValue , int endValue ) {
int startInt = startValue ;
int startA = ( startInt > > 24 ) & 0xff ;
int startR = ( startInt > > 16 ) & 0xff ;
int startG = ( startInt > > 8 ) & 0xff ;
int startB = startInt & 0xff ;
int endInt = endValue ;
int endA = ( endInt > > 24 ) & 0xff ;
int endR = ( endInt > > 16 ) & 0xff ;
int endG = ( endInt > > 8 ) & 0xff ;
int endB = endInt & 0xff ;
int startA = ( startValue > > 24 ) & 0xff ;
int startR = ( startValue > > 16 ) & 0xff ;
int startG = ( startValue > > 8 ) & 0xff ;
int startB = startValue & 0xff ;
int endA = ( endValue > > 24 ) & 0xff ;
int endR = ( endValue > > 16 ) & 0xff ;
int endG = ( endValue > > 8 ) & 0xff ;
int endB = endValue & 0xff ;
return ( startA + ( int ) ( fraction * ( endA - startA ) ) ) < < 24 |
( startR + ( int ) ( fraction * ( endR - startR ) ) ) < < 16 |