Giter Site home page Giter Site logo

processing-gif's Introduction

Making GIFs with Processing

This is a set of Processing sketches to generate GIFs. I make a GIF with Processing maybe once every few months, so every time I come back to it I have no idea what's going on. I've created a script and some template sketches to make this somewhat easier.

The base template is modified from a tutorial by Etienne Jacobs, which in turn is based on a motion blur template by beesandbombs (dave).

Instructions for use

The create script requires the following:

Commands

task command
generate new sketch from template ./create your_sketch_name new [--noise]
run sketch in interactive mode ./create your_sketch_name play
generate frames ./create your_sketch_name frames [--debug]
generate GIF ./create your_sketch_name gif [--debug]
remove frames ./create your_sketch_name clean

Notes

  • Remember to run clean if you reduce the number of frames.
  • If you run gif with an empty frames/ directory, the frames will be generated first
  • If you plan to use noise, running new --noise will add OpenSimplexNoise to the new folder
  • If you want to compare different parameters, you can run frame --debug and each frames will include parameter info in the top-left. You can also run gif --debug directly with an empty frames/ directory.
  • You should be able to pass command line arguments to your Processing sketch but I haven't tested it

ffmpeg

The script is setup to use a custom palette for the GIF. Sometimes you may want the dithering and standard color palette, in which case you can always go for the simplest conversion:

ffmpeg -i egg/frames/fr%03d.png egg/output/new-egg.gif
Standard Custom palette
egg with dithering egg with custom palette

Useful resources

processing-gif's People

Contributors

shefalinayak avatar

Stargazers

alefnull avatar  avatar

Watchers

 avatar

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.