List of usage examples for javafx.scene.paint Color DARKBLUE
Color DARKBLUE
To view the source code for javafx.scene.paint Color DARKBLUE.
Click Source Link
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, 40, 30); final Group root = new Group(circ); final Scene scene = new Scene(root, 800, 400, Color.BEIGE); final Text text1 = new Text(25, 25, "java2s.com"); text1.setFill(Color.DARKBLUE); text1.setFont(Font.font(java.awt.Font.SERIF, 25)); root.getChildren().add(text1);/*from w ww. j av a 2 s . co m*/ primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, 40, 30); final Group root = new Group(circ); final Scene scene = new Scene(root, 800, 400, Color.BEIGE); final Text text1 = new Text(25, 25, "java2s.com"); text1.setFill(Color.DARKBLUE); text1.setFont(Font.font(java.awt.Font.SERIF, 25)); final Reflection reflection = new Reflection(); reflection.setFraction(1.0);//w w w .j av a 2s .c o m text1.setEffect(reflection); root.getChildren().add(text1); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, 40, 30); final Group root = new Group(circ); final Scene scene = new Scene(root, 800, 400, Color.BEIGE); final Text text1 = new Text(25, 25, "java2s.com"); text1.setFill(Color.DARKBLUE); text1.setFont(Font.font(java.awt.Font.SERIF, 25)); final Effect glow = new Glow(1.0); text1.setEffect(glow);/*from w ww .ja v a 2 s . com*/ root.getChildren().add(text1); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250); Rectangle r = new Rectangle(); r.setX(10);/* w ww . j a va 2 s .co m*/ r.setY(10); r.setWidth(160); r.setHeight(80); r.setFill(Color.DARKBLUE); Text t = new Text(); t.setText("Bloom!"); t.setFill(Color.YELLOW); t.setFont(Font.font(null, FontWeight.BOLD, 36)); t.setX(25); t.setY(65); g.setCache(true); g.setEffect(new Bloom()); g.getChildren().add(r); g.getChildren().add(t); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, 40, 30); final Group root = new Group(circ); final Scene scene = new Scene(root, 800, 400, Color.BEIGE); final Text text1 = new Text(25, 25, "java2s.com"); text1.setFill(Color.DARKBLUE); text1.setFont(Font.font(java.awt.Font.SERIF, 25)); final Light.Distant light = new Light.Distant(); light.setAzimuth(-135.0);/* ww w.ja v a 2 s .c o m*/ final Lighting lighting = new Lighting(); lighting.setLight(light); lighting.setSurfaceScale(9.0); text1.setEffect(lighting); root.getChildren().add(text1); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250, Color.web("0x0000FF", 1.0)); Rectangle r = new Rectangle(); r.setX(10);//from w ww . j a va 2s .co m r.setY(10); r.setWidth(160); r.setHeight(80); r.setFill(Color.DARKBLUE); Text t = new Text(); t.setText("Bloom!"); t.setFill(Color.YELLOW); t.setFont(Font.font(null, FontWeight.BOLD, 36)); t.setX(25); t.setY(65); g.setCache(true); g.setEffect(new Bloom()); g.getChildren().add(r); g.getChildren().add(t); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
static Node perspective() { Group g = new Group(); PerspectiveTransform pt = new PerspectiveTransform(); pt.setUlx(10.0f);/*from w w w. ja v a 2 s .c om*/ pt.setUly(10.0f); pt.setUrx(210.0f); pt.setUry(40.0f); pt.setLrx(210.0f); pt.setLry(60.0f); pt.setLlx(10.0f); pt.setLly(90.0f); g.setEffect(pt); g.setCache(true); Rectangle r = new Rectangle(); r.setX(10.0f); r.setY(10.0f); r.setWidth(280.0f); r.setHeight(80.0f); r.setFill(Color.DARKBLUE); Text t = new Text(); t.setX(20.0f); t.setY(65.0f); t.setText("Perspective"); t.setFill(Color.RED); t.setFont(Font.font("null", FontWeight.BOLD, 36)); g.getChildren().add(r); g.getChildren().add(t); return g; }
From source file:nars.rl.util.ThreeDView.java
private void buildAxes() { final PhongMaterial redMaterial = new PhongMaterial(); redMaterial.setDiffuseColor(Color.DARKRED); redMaterial.setSpecularColor(Color.RED); final PhongMaterial greenMaterial = new PhongMaterial(); greenMaterial.setDiffuseColor(Color.DARKGREEN); greenMaterial.setSpecularColor(Color.GREEN); final PhongMaterial blueMaterial = new PhongMaterial(); blueMaterial.setDiffuseColor(Color.DARKBLUE); blueMaterial.setSpecularColor(Color.BLUE); final Box xAxis = new Box(240.0, 1, 1); final Box yAxis = new Box(1, 240.0, 1); final Box zAxis = new Box(1, 1, 240.0); xAxis.setMaterial(redMaterial);/*w w w .j a v a 2 s.com*/ yAxis.setMaterial(greenMaterial); zAxis.setMaterial(blueMaterial); axisGroup.getChildren().addAll(xAxis, yAxis, zAxis); world.getChildren().addAll(axisGroup); }
From source file:Main.java
static Node bloom() { Group g = new Group(); Rectangle r = new Rectangle(); r.setX(10);//from ww w .ja va 2 s . com r.setY(10); r.setWidth(160); r.setHeight(80); r.setFill(Color.DARKBLUE); Text t = new Text(); t.setText("Bloom!"); t.setFill(Color.YELLOW); t.setFont(Font.font("null", FontWeight.BOLD, 36)); t.setX(25); t.setY(65); g.setCache(true); //g.setEffect(new Bloom()); Bloom bloom = new Bloom(); bloom.setThreshold(1.0); g.setEffect(bloom); g.getChildren().add(r); g.getChildren().add(t); g.setTranslateX(350); return g; }
From source file:org.noroomattheinn.visibletesla.LocationController.java
private Animation animateBlip() { final Circle core = new Circle(572, 360, 5); final Circle blip = new Circle(572, 360, 5); final Circle outline = new Circle(572, 360, 5); Duration blipTime = Duration.seconds(1.5); Duration interBlipTime = Duration.seconds(0.5); core.setFill(Color.BLUE);/*from w w w . java2 s. c o m*/ blip.setFill(Color.LIGHTBLUE); outline.setFill(Color.TRANSPARENT); outline.setStroke(Color.DARKBLUE); outline.setStrokeWidth(0.25); root.getChildren().addAll(blip, core, outline); FadeTransition fadeBlip = new FadeTransition(blipTime, blip); fadeBlip.setFromValue(0.8); fadeBlip.setToValue(0.0); ScaleTransition scaleBlip = new ScaleTransition(blipTime, blip); scaleBlip.setFromX(1); scaleBlip.setToX(4); scaleBlip.setFromY(1); scaleBlip.setToY(4); FadeTransition fadeOutline = new FadeTransition(blipTime, outline); fadeOutline.setFromValue(1.0); fadeOutline.setToValue(0.0); ScaleTransition scaleOutline = new ScaleTransition(blipTime, outline); scaleOutline.setFromX(1); scaleOutline.setToX(4); scaleOutline.setFromY(1); scaleOutline.setToY(4); SequentialTransition sequence = new SequentialTransition( new ParallelTransition(fadeBlip, scaleBlip, scaleOutline, fadeOutline), new PauseTransition(interBlipTime)); sequence.setCycleCount(Timeline.INDEFINITE); sequence.setOnFinished(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent t) { core.setVisible(false); blip.setVisible(false); outline.setVisible(false); } }); sequence.play(); return sequence; }