public void applyTo(javafx.scene.effect.ColorAdjust x) {
   int set = __set;
   if ((set & (1 << 0)) != 0) x.setBrightness(this.brightness);
   if ((set & (1 << 1)) != 0) x.setContrast(this.contrast);
   if ((set & (1 << 2)) != 0) x.setHue(this.hue);
   if ((set & (1 << 3)) != 0) x.setInput(this.input);
   if ((set & (1 << 4)) != 0) x.setSaturation(this.saturation);
 }
Пример #2
0
  /** Luo LevelRenderer-olion. */
  public LevelRenderer() {
    tiles = new HashMap<>();
    loadTileImages();

    onTargetEffect = new ColorAdjust();
    onTargetEffect.setBrightness(-0.2);
    onTargetEffect.setHue(-0.12);
  }