Class GradientGenerator

java.lang.Object
com.jackmeng.halcyoninae.cloudspin.lib.GradientGenerator

public final class GradientGenerator extends Object
A gradient generator meant to generate some interesting gradients to be used within the program.
Since:
3.3
Author:
Jack Meng
  • Constructor Details

    • GradientGenerator

      private GradientGenerator()
  • Method Details

    • make

      public static BufferedImage make(SpeedStyle style, Dimension requiredDim, Color yi, Color er, boolean lock)
      Create a gradient based on the colors given. The accepted arguments are just some simple colors; preferably those that are unique and not close to each other.
      Parameters:
      style - the style to generate
      requiredDim - the dimension to generate the pattern
      yi - the first color sequence
      er - the second color sequence
      lock - whether to make sure to lock or no lock if the random numbers are the same
      Returns:
      A bufferedimage of the color gradient