Class GradientGenerator
java.lang.Object
com.jackmeng.halcyoninae.cloudspin.lib.GradientGenerator
A gradient generator meant to generate some interesting
gradients to be used within the program.
- Since:
- 3.3
- Author:
- Jack Meng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
make
(SpeedStyle style, Dimension requiredDim, Color yi, Color er, boolean lock) Create a gradient based on the colors given.
-
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 generaterequiredDim
- the dimension to generate the patternyi
- the first color sequenceer
- the second color sequencelock
- whether to make sure to lock or no lock if the random numbers are the same- Returns:
- A bufferedimage of the color gradient
-