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.voidsetBrightness(double b) Set the 'brightness' component of subsequent colors.voidsetSaturation(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, waitMethods inherited from interface imagingbook.common.color.iterate.ColorSequencer
hasNextMethods 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