A basic example of creating gifs using clj-media.
See the docs for code-to-gif/make-code-gif
and code-to-gif/repl-to-gif
for programmatic usage.
To run a basic example:
clojure -M -m code-to-gif
This will create example.gif
with the source of clojure.core/filter
.
To create a gif for a different function, simply pass the symbol as the first argument:
clojure -M -m code-to-gif clojure.pprint/pprint