Package ghidra.util

Class ColorUtils.ColorBlender

java.lang.Object
ghidra.util.ColorUtils.ColorBlender
Enclosing class:
ColorUtils

public static class ColorUtils.ColorBlender extends Object
Blender of colors
  • Constructor Details

    • ColorBlender

      public ColorBlender()
  • Method Details

    • add

      public void add(Color color)
      Add a color into the mixture, in a quantity proportional to its alpha value
      Parameters:
      color - the color to mix
    • clear

      public void clear()
      Reset the mixture
    • getColor

      public Color getColor(Color defaultColor)
      Get the color of the current mixture
      Parameters:
      defaultColor - the default (background) color, if the mixture has no color
      Returns:
      the resulting color