HeNerator
A simple script to generate HeN ipfs app exports from any frag shader created with:
How it works?
- If you are using GlslEditor or The Book of Shaders's on-line editor, download the file.
- Excecute
henerator.py
follow with the--title NAME
of your work and (optionally) the--duration_secs SECONDS
of the thumbnail GIF. If you don't set a duration it will use the first frame as an image.
./henerator.py test.frag --title ball --duration 2.5
- That's all! Y ou should see a
heneration.zip
file in the same folder.
Other arguments
--width WIDTH
of the thumbnail--height HEIGHT
of the thumbnail--fps FPS
of the thumbnail animation--start SECONDS
of the thumbnail animation--pixel_density PIXEL_density
of the thumbnail (in MacOS usually is 2)
Requirements and Install
- Latest version of GlslViewer
- Ffmpeg (only required to make animated GIFs for your thumbnails)
- Python3
- ArgParse module for Python3
pip3 install argparse
- You can install
henerator.py
globaly on your system by just typing
make install