Right-click image to save or use Download button
Previously, we just took one color and shifted it slightly. Now, we define two anchor points:
The code then linearly interpolates the hue for every layer between these two points. This allows for dramatic shifts, like Red transitioning to Blue, or Green to Purple.
To achieve the "Dark-Light-Dark" look, lightness is independent of the hue. We map the layer index to a Sine wave.
Visualizing Lightness per Layer