scene.getWidth(), scene.getHeight(), Color.BLACK), circles),
colors);
colors.setBlendMode(BlendMode.OVERLAY);
root.getChildren().add(blendModeGroup);
Timeline timeline = new Timeline();
for (Node circle : circles.getChildren()) {
timeline.getKeyFrames().addAll(
new KeyFrame(Duration.ZERO, // set start position at 0
new KeyValue(circle.translateXProperty(),
random() * 800),
new KeyValue(circle.translateYProperty(),
random() * 600)),
new KeyFrame(new Duration(40000), // set end position at 40s
new KeyValue(circle.translateXProperty(),
random() * 800), new KeyValue(circle
.translateYProperty(), random() * 600)));
}
// play 40s of animation
timeline.play();
primaryStage.setTitle("Hello OSGi World");
primaryStage.show();
}