How would you realize a "blinking"-Effect
The question narrows down to : Which is the best solution to trigger each 0,5 seconds an event (on the JavaFX thread) ?
I could do this with a TimelineAnimation or with a Task<Void>, the problem withthe Task is that I have to update the UI with Platform.runLater() each time which is an impact on the overall perfomance. On the otherhand the TimerLineAnimation is useful to update a property and I do not think that it is the approriate method to realize a blink effect.
How would you do this ?
E.G. I have a circle. This shape is supposed to change its Color every 0,5 seconds (And there can be many of this circles..)