Class ColorUtils


  • public class ColorUtils
    extends Object
    • Constructor Detail

      • ColorUtils

        public ColorUtils()
    • Method Detail

      • colorWithAlpha

        public static Color colorWithAlpha​(Color color,
                                           double alpha)
        Changes the alpha by a multiplicative factor
        Parameters:
        color - Given color.
        alpha - Alpha factor.
        Returns:
        New color with modified alpha.