Package HAL.Gui
Class GifMaker
- java.lang.Object
-
- HAL.Gui.GifMaker
-
public class GifMaker extends java.lang.Object
the GifMaker is used to create gif files by compiling UIGrid states
-
-
Constructor Summary
Constructors Constructor Description GifMaker(java.lang.String outputPath, int timeBetweenFramesMS, boolean loopContinuously)
Creates a new GifMaker
-
-
-
Constructor Detail
-
GifMaker
public GifMaker(java.lang.String outputPath, int timeBetweenFramesMS, boolean loopContinuously)
Creates a new GifMaker- Parameters:
outputPath
- the gif file to be written totimeBetweenFramesMS
- the time between frames in milisecondsloopContinuously
- wether the gif should loop repeatedly- Throws:
javax.imageio.IIOException
- if no gif ImageWriters are found
-
-
Method Detail
-
AddFrame
public void AddFrame(UIGrid vis)
adds the current UIGrid state to the GIF as a single frame
-
Close
public void Close()
Close this GifMaker object
-
-