java.lang.Object
is.codion.swing.common.ui.Colors

public final class Colors extends Object
Utilities class for Color.
  • Method Details

    • darker

      public static Color darker(Color color)
      Returns a darker version of the given color, using 0.8 as the mulitiplication factor.
      Parameters:
      color - the color to darken
      Returns:
      a darker version of the given color
      See Also:
    • darker

      public static Color darker(Color color, double factor)
      Returns a darker version of the given color, using the given factor.
      Parameters:
      color - the color to darken
      factor - a number between 0 and 1, non-inclusive
      Returns:
      a darker version of the given color
      See Also: