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 Summary

  Constructors
  Constructor
  Description
  `ColorBlender()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(Color color)`
  Add a color into the mixture, in a quantity proportional to its alpha value
  `void`
  `clear()`
  Reset the mixture
  `Color`
  `getColor(Color defaultColor)`
  Get the color of the current mixture

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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