Class HexUtils.Gradient

java.lang.Object
dev.esophose.playerparticles.util.HexUtils.Gradient
Direct Known Subclasses:
HexUtils.AnimatedGradient
Enclosing class:
HexUtils

public static class HexUtils.Gradient
extends java.lang.Object
Allows generation of a multi-part gradient with a defined number of steps
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected long step  
  • Constructor Summary

    Constructors 
    Constructor Description
    Gradient​(java.util.List<java.awt.Color> colors, int steps)  
  • 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

    • step

      protected long step
  • Constructor Details

    • Gradient

      public Gradient​(java.util.List<java.awt.Color> colors, int steps)
  • Method Details

    • next

      public java.awt.Color next()