示例#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));
 }