question: private int adjustAlpha ( int color , float factor ) { if ( factor < 0 ) return color ; int alpha = Math . round ( Color . alpha ( color ) * factor ) ; return Color . argb ( alpha , Color . red ( color ) , Color . green ( color ) , Color . blue ( color ) ) ; }
target:  Adjust the alpha of a color based on a percent factor.