Uses the primitive library to automate creating gifs
Primitive takes in a single image (.png) and recreates the image using primitive shapes. The process is random and creating multiple images is a nice effect for a gif. This script automates the process of creating 8 primitive images, and then converts them into a gif.
This script requires primitive be installed. (Primitive has no public class for import)
git clone https://github.com/Genji-MS/PrimitiveGif.git
go get -u github.com/fogleman/primitive
go test
The test script will ensure that primitive has been installed correctly. If the test fails, follow the instructions in the error message then re-test
To run the script, place any number of .png files in the local directory and use
go build && ./main -dir=.
The completed gif will be written into the same directory as .gif
- Fogleman primitive: https://github.com/fogleman/primitive