Simple API to generate customizable animated spinning wheels as GIFs.
Check .env.example for configuration.
git clone https://github.com/RadonCoding/wheels.gitcd wheelsgo build -o wheels
Make a GET request to / with the following parameters:
options- Comma-separated list of wheel labels (e.g. a,b,c)
target- Index of the option that should be the final result (zero-indexed)
duration - Duration of the GIF in seconds
fps - Frames per second for the GIF
GET /?options=Red,Green,Blue&target=0&duration=5&fps=24
This will return an animated GIF where the wheel spins for 5 seconds at 24 FPS and lands on "Red".
- Fork it
- Create your branch (
git checkout -b my-change) - Commit your changes (
git commit -m "changed something") - Push to the branch (
git push origin my-change) - Create new pull request
