Hi all. First time with tornadofx so excuse me if ...
# tornadofx
c
Hi all. First time with tornadofx so excuse me if this is stupid. I want to draw a list of circles:
Copy code
world.actor.forEach { actor ->
                actorModel.rebind { actor }
                circle {
                    centerXProperty().bind(actorModel.x)
                    centerYProperty().bind(actorModel.y)
                    radius = 10.0
                }
            }
I don't quite understand how the model binding works (right now it prints them out with some default positioning). Given an ActorModel, and a list of observable Actors, can I re-use my ActorModel to display each?