示例#1
0
  protected static ColorGradient buildFireGradient() {
    ColorGradient gradient = ColorGradient.buildFire();

    gradient.add(RGBAColor.black());
    gradient.add(RGBAColor.black());
    gradient.add(RGBAColor.black());
    gradient.add(RGBAColor.black());

    return gradient;
  }
示例#2
0
 public SunsetTexture() {
   gradient = new ColorGradient();
   gradient
       .add(new RGBAColor(16, 32, 64))
       .add(new RGBAColor(32, 64, 128))
       .add(new RGBAColor(128, 160, 255))
       .add(new RGBAColor(192, 210, 255))
       .add(new RGBAColor(250, 240, 192));
 }
示例#3
0
 public void getColor(double u, double v, RGBAColor value) {
   gradient.interpolate(v, value);
 }
示例#4
0
 public void getColor(double u, double v, RGBAColor value) {
   double val = calculateSignalFromSignal(u, v, signal);
   gradient.interpolate(val, value);
 }
示例#5
0
 public Mandelbrot(double startX, double startY, double endX, double endY) {
   this(ColorGradient.buildSpectrum(), startX, startY, endX, endY);
 }
示例#6
0
 public Mandelbrot() {
   this(ColorGradient.buildSpectrum(), -2.025, -1.125, 0.6, 1.125);
 }