Package ghidra.util
Class ColorUtils.ColorBlender
- java.lang.Object
-
- ghidra.util.ColorUtils.ColorBlender
-
- Enclosing class:
- ColorUtils
public static class ColorUtils.ColorBlender extends java.lang.Object
Blender of colors
-
-
Constructor Summary
Constructors Constructor Description ColorBlender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.awt.Color color)
Add a color into the mixture, in a quantity proportional to its alpha valuevoid
clear()
Reset the mixturejava.awt.Color
getColor(java.awt.Color defaultColor)
Get the color of the current mixture
-
-
-
Method Detail
-
add
public void add(java.awt.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 java.awt.Color getColor(java.awt.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
-
-