Git Product home page Git Product logo

photoshoot's Introduction

photoshoot

Generate a GIF of canon balls that shoot around and slowly fall in place to form an image.

The project is inspired by this video (especially the end).

In the current state, photoshoot is completely unoptimizied and slow. Often it hangs in the end but I also had some really good results after tuning the settings.

usage

$ photoshoot --output out.gif some-photo.jpg
$ photoshoot --help
Usage: photoshoot [OPTIONS] --output <OUTPUT> <PHOTO>

Arguments:
  <PHOTO>  Path to the input photo

Options:
  -o, --output <OUTPUT>          Path to the output GIF
  -f, --frame-rate <FRAME_RATE>  Frame rate of the GIF [default: 0.02]
      --gif-speed <GIF_SPEED>    Speed of the writing of the GIF [default: 10]
  -s, --substeps <SUBSTEPS>      Simulation substeps [default: 5]
      --gravity <GRAVITY>        Simulation gravity [default: 9.81]
  -r, --radius <RADIUS>          Radius of the canon balls [default: 1]
  -b, --black-bg                 Black background (default: white)
  -i, --infinite                 Should the GIF run repeat infinitely
  -l, --last-frame <LAST_FRAME>  How much longer should the last frame be [default: 50]
      --dry-run                  Don't write to file
  -h, --help                     Print help
  -V, --version                  Print version

little showcase

input photo (from rusteacean.net) photoshoot created GIF

photoshoot's People

Contributors

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