question: public int adjustAlpha ( int color , float factor ) { int alpha = Math . round ( Color . alpha ( color ) * factor ) ; int red = Color . red ( color ) ; int green = Color . green ( color ) ; int blue = Color . blue ( color ) ; return Color . argb ( alpha , red , green , blue ) ; }
target:  Set the alpha for the color based on the alpha factor