Git Product home page Git Product logo

gdxgifrecorder's Introduction

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
  • F: expands the recording bounds to the full screen

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.

gdxgifrecorder's People

Contributors

anuken avatar dwursteisen avatar torbuntu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gdxgifrecorder's Issues

Export to mp4

Would it be possible to export to some sort of video format rather than gifs?

Not Android Support

Library uses javax.imageio and java.awt which are not part of the Android platform so i get the following error when i try to run it in android:
...E/AndroidRuntime: FATAL EXCEPTION: Thread-3 java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/imageio/ImageIO; at io.anuke.gif.GifRecorder.compileGIF(GifRecorder.java:354) at io.anuke.gif.GifRecorder.access$200(GifRecorder.java:23) at io.anuke.gif.GifRecorder$1.run(GifRecorder.java:335) at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.imageio.ImageIO" on path: DexPathList[[zip file ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.