Package org
Class Colors
java.lang.Object
org.Colors
- All Implemented Interfaces:
HelperClass
public class Colors extends Object implements HelperClass
-
Constructor Summary
Constructors Constructor Description Colors() -
Method Summary
Modifier and Type Method Description static Colorbrighten(Color color, double saturation, double value)static ArrayList<Color>get(int numberOfColors)Creates the specified number of color objects, which can be discriminated as good as possible,static ArrayList<Color>get(int numberOfColors, double saturation)static ArrayList<Color>get(int numberOfColors, float saturation)Creates the specified number of color objects, which can be discriminated as good as possible.static ColorgetAlphaColor(int numberOfColors, int alpha, int index)static Color[]getAlphaColors(int numberOfColors, int alpha)static ColorgetColor(float maxOrMinR, double gamma, Color col__1, Color col_1)static Color[]getColors(int numberOfColours)An array version of get(int).static ArrayList<Color>getGrayColors(int numberOfColors)static ArrayList<Color>getGrayColorsInverse(int numberOfColors)static ColorgetOppositeColor(Color color)
-
Constructor Details
-
Colors
public Colors()
-
-
Method Details
-
get
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
-
get
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
-
getColor
-
getGrayColorsInverse
-
getAlphaColors
-
getColors
An array version of get(int).- Parameters:
numberOfColours- the number of distinct colours- Returns:
Colorarray of sizenumberOfColours
-
getAlphaColor
- Parameters:
numberOfColors-alpha-index-- Returns:
-
getOppositeColor
- Parameters:
newColor-- Returns:
-
brighten
-