graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
402 stars 109 forks source link

Icons and Movie #284

Open Silfalion opened 6 years ago

Silfalion commented 6 years ago

Hi everyone,

I created a movie for my graph construction. However the icon insertion doesn't work using this code:

fsi.setStyleSheet(
                "graph { padding: 50px;}" +
                "node { icon: url('Downloads\\person3.png'); }"
        );

Also the movie obtained is cut short at the end, we can't see the final graph for more than a split second, is it possible to keep taking shots even after the graph is done?

Thank you for reading.

hichbra commented 6 years ago

Hi ! Please ensure the path of your icon is valid. If you want to add a static icon or a watermark, you can use fsi.addFilter(new AddLogoFilter("icon.png", 0, 480)); // Graphstream 2.0

If you want to keep taking shots, you can add events in the loop at the end, for example setAttribute("play", "on");