https://github.com/rabuu/photoshoot
Generate a GIF of your photo shoot
https://github.com/rabuu/photoshoot
Last synced: 4 months ago
JSON representation
Generate a GIF of your photo shoot
- Host: GitHub
- URL: https://github.com/rabuu/photoshoot
- Owner: rabuu
- License: mit
- Created: 2023-10-18T21:00:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T23:51:17.000Z (about 2 years ago)
- Last Synced: 2024-04-21T23:17:16.112Z (about 2 years ago)
- Language: Rust
- Homepage:
- Size: 9.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://youtu.be/lS_qeBy3aQI?si=0QOkNiy3eRM54eK1) (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
```console
$ photoshoot --output out.gif some-photo.jpg
$ photoshoot --help
Usage: photoshoot [OPTIONS] --output
Arguments:
Path to the input photo
Options:
-o, --output Path to the output GIF
-f, --frame-rate Frame rate of the GIF [default: 0.02]
--gif-speed Speed of the writing of the GIF [default: 10]
-s, --substeps Simulation substeps [default: 5]
--gravity Simulation gravity [default: 9.81]
-r, --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 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
 (from [rusteacean.net](https://rusteacean.net))
