An example of a faded Path in JavaFx. It has two different canvas the one in the left side is the Fade Transition and other one in the right is also a Fade Transition but with a Stroke Transition.
FadeTransition ft = new FadeTransition(Duration.millis(5000), path); ft.setFromValue(1.0); ft.setToValue(0.0); ft.play();
To change the stroke color of a shape simply use the Stroke Transition.
StrokeTransition sT = new StrokeTransition(Duration.millis(2000), path, Color.LIME, Color.YELLOW); sT.play();