public class HSVColorGenerator extends Object implements ColorGenerator
Constructor and Description |
---|
HSVColorGenerator()
constructor which sets the range to:
hue - [0.0, 1.0)
saturation - [1.0, 1.0]
brightness - [1.0, 1.0]
|
HSVColorGenerator(float saturationMin,
float saturationMax,
float brightnessMin,
float brightnessMax)
constructor which sets the range of the hue to [0,1) and sets the
ranges for saturation and brightness to the parameter
|
HSVColorGenerator(float hueMin,
float hueMax,
float saturationMin,
float saturationMax,
float brightnessMin,
float brightnessMax)
constructor which sets the ranges for saturation and brightness to the parameter
|
Modifier and Type | Method and Description |
---|---|
Color[] |
generateColors(int numColors)
Generate numColors unique colors which should be easily distinguishable.
|
public HSVColorGenerator()
public HSVColorGenerator(float saturationMin, float saturationMax, float brightnessMin, float brightnessMax)
public HSVColorGenerator(float hueMin, float hueMax, float saturationMin, float saturationMax, float brightnessMin, float brightnessMax)
public Color[] generateColors(int numColors)
generateColors
in interface ColorGenerator
numColors
- the number of colors to generateCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.