Class HexUtils.Rainbow
java.lang.Object
dev.esophose.playerparticles.util.HexUtils.Rainbow
- Direct Known Subclasses:
HexUtils.AnimatedRainbow
- Enclosing class:
- HexUtils
public static class HexUtils.Rainbow
extends java.lang.Object
Allows generation of a rainbow gradient with a fixed number of steps
-
Field Summary
Fields Modifier and Type Field Description protected float
brightness
protected float
hue
protected float
hueStep
protected float
saturation
-
Constructor Summary
Constructors Constructor Description Rainbow(int totalColors, float saturation, float brightness)
-
Method Summary
Modifier and Type Method Description java.awt.Color
next()
-
Field Details
-
hueStep
protected final float hueStep -
saturation
protected final float saturation -
brightness
protected final float brightness -
hue
protected float hue
-
-
Constructor Details
-
Rainbow
public Rainbow(int totalColors, float saturation, float brightness)
-
-
Method Details
-
next
public java.awt.Color next()
-