java.lang.Object
imagingbook.common.color.iterate.RandomHueGenerator
- All Implemented Interfaces:
ColorSequencer
,Iterator<Color>
Instances of this class create a sequence of random colors which only differ in hue, with saturation and value fixed.
- Version:
- 2022/11/06
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor (no random seed).RandomHueGenerator
(long seed) Constructor with specific random seed (for repeatability). -
Method Summary
Modifier and TypeMethodDescriptionnext()
Returns the next random color.void
setBrightness
(double b) Set the 'brightness' component of subsequent colors.void
setSaturation
(double s) Set the 'saturation' component of subsequent colors.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.common.color.iterate.ColorSequencer
hasNext
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RandomHueGenerator
public RandomHueGenerator()Constructor (no random seed). -
RandomHueGenerator
Constructor with specific random seed (for repeatability).- Parameters:
seed
- random seed
-
-
Method Details