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 Color
brighten(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 Color
getAlphaColor(int numberOfColors, int alpha, int index)
static Color[]
getAlphaColors(int numberOfColors, int alpha)
static Color
getColor(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 Color
getOppositeColor(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:
Color
array of sizenumberOfColours
-
getAlphaColor
- Parameters:
numberOfColors
-alpha
-index
-- Returns:
-
getOppositeColor
- Parameters:
newColor
-- Returns:
-
brighten
-