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); }
/** Luo LevelRenderer-olion. */ public LevelRenderer() { tiles = new HashMap<>(); loadTileImages(); onTargetEffect = new ColorAdjust(); onTargetEffect.setBrightness(-0.2); onTargetEffect.setHue(-0.12); }
@FXML void dragEntered(DragEvent event) { /* the drag-and-drop gesture entered the target */ /* show to the user that it is an actual gesture target */ if (event.getGestureSource() != imageView && event.getDragboard().hasString()) { ColorAdjust colorAdjust = new ColorAdjust(); colorAdjust.setBrightness(0.5); imageView.setEffect(colorAdjust); } event.consume(); }