public class ColorUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<Color> |
defaultBlacklistColors |
static List<Color> |
extremeColors |
| Constructor and Description |
|---|
ColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateDistance(Color c1,
Color c2) |
protected static Color |
findColorWithLongestDistanceToClosestNeighbour(List<Color> newColors,
List<Color> existingColors) |
static List<Color> |
getExtremeColorsAsPotentials(List<Color> alreadyExistingColors) |
static Color |
getNewContrastfulColor(Set<Color> colors,
List<Color> blacklistedColors) |
protected static List<Color> |
getNewPotentialColors(List<Color> colorsThatShouldBeAsFarAwayAsTheNewColorAsPossible) |
static Color |
mixColors(Color c1,
Color c2) |
public static Color getNewContrastfulColor(Set<Color> colors, List<Color> blacklistedColors)
protected static Color findColorWithLongestDistanceToClosestNeighbour(List<Color> newColors, List<Color> existingColors)
public static List<Color> getExtremeColorsAsPotentials(List<Color> alreadyExistingColors)
protected static List<Color> getNewPotentialColors(List<Color> colorsThatShouldBeAsFarAwayAsTheNewColorAsPossible)
Copyright © 2020. All rights reserved.