Package org

Class Colors

java.lang.Object
org.Colors
All Implemented Interfaces:
HelperClass

public class Colors
extends Object
implements HelperClass
  • Constructor Details

    • Colors

      public Colors()
  • Method Details

    • get

      public static ArrayList<Color> get​(int numberOfColors)
      Creates the specified number of color objects, which can be discriminated as good as possible,
      Parameters:
      numberOfColors - number of different colors to create
      Returns:
      Collection of Color objects
    • get

      public static ArrayList<Color> get​(int numberOfColors, double saturation)
    • get

      public static ArrayList<Color> get​(int numberOfColors, float saturation)
      Creates the specified number of color objects, which can be discriminated as good as possible.
      Parameters:
      numberOfColors - number of different colors to create
      Returns:
      Collection of Color objects
    • getGrayColors

      public static ArrayList<Color> getGrayColors​(int numberOfColors)
    • getColor

      public static Color getColor​(float maxOrMinR, double gamma, Color col__1, Color col_1)
    • getGrayColorsInverse

      public static ArrayList<Color> getGrayColorsInverse​(int numberOfColors)
    • getAlphaColors

      public static Color[] getAlphaColors​(int numberOfColors, int alpha)
    • getColors

      public static Color[] getColors​(int numberOfColours)
      An array version of get(int).
      Parameters:
      numberOfColours - the number of distinct colours
      Returns:
      Color array of size numberOfColours
    • getAlphaColor

      public static Color getAlphaColor​(int numberOfColors, int alpha, int index)
      Parameters:
      numberOfColors -
      alpha -
      index -
      Returns:
    • getOppositeColor

      public static Color getOppositeColor​(Color color)
      Parameters:
      newColor -
      Returns:
    • brighten

      public static Color brighten​(Color color, double saturation, double value)