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