We've implemented something like that so that we can have snapshots taken at preset times and saved to files. It's done by adding a new method to Display2D.java:
takeSnapshot(String filename). You can then call this method whenever you like and feed it a String for the filename.
I've attached our modified file. The new method is right after the original takeSnapshot().
-Paul Smaldino
[log in to unmask]
It is possible to save a snapshot of a simulation from the GUI. However, I would like to do the same from a _headless_ MASON configuration. That is, I want to run MASON from the command line and have it emit PNG snapshots of the simulation; this will _not_ be from within a GUI. Is there a convenient way of doing this?
Cheers,
Mark Coletti
[log in to unmask]