Beispiel #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;
  }
 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));
 }
 public void getColor(double u, double v, RGBAColor value) {
   gradient.interpolate(v, value);
 }
Beispiel #4
0
 public void getColor(double u, double v, RGBAColor value) {
   double val = calculateSignalFromSignal(u, v, signal);
   gradient.interpolate(val, value);
 }
Beispiel #5
0
 public Mandelbrot(double startX, double startY, double endX, double endY) {
   this(ColorGradient.buildSpectrum(), startX, startY, endX, endY);
 }
Beispiel #6
0
 public Mandelbrot() {
   this(ColorGradient.buildSpectrum(), -2.025, -1.125, 0.6, 1.125);
 }