Last active
August 29, 2015 13:57
-
-
Save mvanveen/9832191 to your computer and use it in GitHub Desktop.
Source code for `poverass` and `guarl_raid` glitch gifs
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to make a GIF, I use the following workflow:
In the working directory of my project, I run an HTTP server to serve all the static files to a web browser. I do this by running:
after
cd
ing to the right directory in the terminal.The second thing I do to make a GIF is use
phantomJS
andgifsicle
to render page frames. I use the following one-liner to render GIFs:In a nutshell, this one-liner:
out*.gif
)phantomjs
headless web browser to render this folder using the recording script defined inphantom.js
and renders sequentially numberedout*.gif
frames into the working dir.gifsicle
.note The file
phantom.js
handles configuration for the processphantomjs
(they're different! see the.
?). Stuff like setting up the headless web browser's screen size, url location, etc. are all handled in that file.note 2: I use different
colors
anddelay
parameters forgifsicle
with different GIFs. Not sure what I used for this iteration unfortunately, but this is a good guess. :-pA kind of neat side-effect of using this approach is that you can go straight to
http://localhost:8000/anim.gif
in order to preview the finished GIF you've just made in step 2 as long as you keep the HTTP server running.This is a basic walkthrough for now. I'm going to try and create a basic repo structure later for my future sketches, including a
Makefile
, etc.In the meantime, please check out this gist! I'll try to remember to add in the source image I have for
poverass
(I took it with my iPhone rather than downloading it).