private int lighten ( int color ) { float [ ] hsv = new float [ 3 ] ; Color . colorToHSV ( color , hsv ) ; hsv [ 2 ] = 1.0f - 0.8f * ( 1.0f - hsv [ 2 ] ) ; color = Color . HSVToColor ( hsv ) ; return color ; }
Get a lighter color for a given color