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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()