question: public static int colorWithAlpha ( int color , float percent ) { int r = Color . red ( color ) ; int g = Color . green ( color ) ; int b = Color . blue ( color ) ; int alpha = Math . round ( percent * 255 ) ; return Color . argb ( alpha , r , g , b ) ; }
target:  Create a color with alpha (percent) + given color