public static class ColorIterator.SaturationStepper extends ColorIterator.ADefaultStepping
m_stepping
Constructor and Description |
---|
SaturationStepper()
Creates an instance with 100 saturation steps.
|
SaturationStepper(int steps)
Creates an instance with the given stepping to go on the saturation line
of the color space.
|
Modifier and Type | Method and Description |
---|---|
void |
doStep(ColorIterator tostep)
Performs a saturation step on the given ColorIterator's HSBColor.
|
clone, setSteps
public SaturationStepper()
public SaturationStepper(int steps)
steps
- the amount of steps to take on the saturation line.public void doStep(ColorIterator tostep)
The bounds are watched: if a step would cross 1.0, it will be continued beginning from 0. if a step would cross the saturation value of the ColorIterator's start saturation, the step will only go as far as this value. Else there would be problems with finding the end of the iteration.
tostep
- the color iterator to perform the step on.Copyright © 2019. All rights reserved.