Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Anuken/GDXGifRecorder
A utility class for libGDX that records a GIF and saves it automatically.
https://github.com/Anuken/GDXGifRecorder
Last synced: 15 days ago
JSON representation
A utility class for libGDX that records a GIF and saves it automatically.
- Host: GitHub
- URL: https://github.com/Anuken/GDXGifRecorder
- Owner: Anuken
- Created: 2017-02-02T01:35:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T01:03:44.000Z (almost 5 years ago)
- Last Synced: 2024-08-02T07:10:34.014Z (4 months ago)
- Language: Java
- Size: 71.3 KB
- Stars: 37
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-libgdx - gdxGifRecorder - A utility class that records a GIF and saves it automatically. (Resources / Others)
README
[![](https://jitpack.io/v/Anuken/GdxGifRecorder.svg)](https://jitpack.io/#Anuken/GdxGifRecorder)
## GdxGifRecorder
A simple utility class for libGDX that records a GIF and saves it automatically.### Usage
To begin, add this project as a dependency in your `build.gradle` file. See [this JITPack link](https://jitpack.io/#Anuken/GdxGifRecorder/1.3) or click the JITPack badge above to see how.
Since the recorder uses a SpriteBatch to draw its GUI, you'll first start by creating a GIF recorder with
`recorder = new GifRecorder(someSpriteBatch)`
somewhere in your `create()` method.Then, in your `render()` method, call `recorder.update()` after you've drawn everything you want to record.
And that's it! You're done.
### Default Controls:
- E: opens the recorder
- Left-Ctrl + Left-Mouse: expands the recording bounds to the mouse position
- Left-Shift + Left-Mouse: moves the recording window to the mouse position
- T: starts/stops recording
- F: expands the recording bounds to the full screenBy default, recordings are saved to `./gifexports/recording-xxxxxx.gif`.
Note that images are also exported to a temporary working directory while the GIF is being compiled, `./.gifimages/`.
### Known Issues
Starting the write of the output GIF on Mac seems to cause a freeze. Cause is currently unknown.