public static Color fade( Color color, float amount ) {
		int newAlpha = Math.round( 255 * amount );
		return new Color( (color.getRGB() & 0xffffff) | (newAlpha << 24), true );
	}
Set the opacity (alpha) of a color.

@param color base color
@param amount the amount (in range 0-1) of the new opacity
@return new color
@since 3
flatlaf-core/src/main/java/com/formdev/flatlaf/util/ColorFunctions.java