MCPcopy Index your code
hub / github.com/Anuken/GDXGifRecorder

github.com/Anuken/GDXGifRecorder @1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.4 ↗ · + Follow
45 symbols 65 edges 2 files 13 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 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

By 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.

Extension points exported contracts — how you extend this code

RecorderController (Interface)
Provide an implementation and call recorder.setController() for custom input [2 implementers]
src/io/anuke/gif/GifRecorder.java

Core symbols most depended-on inside this repo

getNode
called by 3
src/io/anuke/gif/GifSequenceWriter.java
finishRecording
called by 2
src/io/anuke/gif/GifRecorder.java
clearFrames
called by 2
src/io/anuke/gif/GifRecorder.java
createPixmap
called by 2
src/io/anuke/gif/GifRecorder.java
writeToSequence
called by 2
src/io/anuke/gif/GifSequenceWriter.java
doInput
called by 1
src/io/anuke/gif/GifRecorder.java
close
called by 1
src/io/anuke/gif/GifRecorder.java
startRecording
called by 1
src/io/anuke/gif/GifRecorder.java

Shape

Method 41
Class 3
Interface 1

Languages

Java100%

Modules by API surface

src/io/anuke/gif/GifRecorder.java39 symbols
src/io/anuke/gif/GifSequenceWriter.java6 symbols

For agents

$ claude mcp add GDXGifRecorder \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page