Package ghidra.util
Class ColorUtils.ColorBlender
java.lang.Object
ghidra.util.ColorUtils.ColorBlender
- Enclosing class:
ColorUtils
Blender of colors
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ColorBlender
public ColorBlender()
-
-
Method Details
-
add
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
Get the color of the current mixture- Parameters:
defaultColor
- the default (background) color, if the mixture has no color- Returns:
- the resulting color
-