A simple pygame script for generating HEADPATS animations, like so
I've included sample images for a windows 3.1 icon and my twitter avatar.
- Python 2.7
- pygame (tested with 1.9.5)
headpats.py accepts the following optional arguments:
-h, --help show this help message and exit
--background-image BACKGROUND_IMAGE
set the path for the background image to use
--hand-image HAND_IMAGE
set the path for the hand image to use
-f, --fullscreen start fullscreen
--pats-per-second PATS_PER_SECOND
set pat frequency
--pat-amplitude PAT_AMPLITUDE
set pat amplitude
-x PAT_X, --pat-x PAT_X
set horizontal pat position
-y PAT_Y, --pat-y PAT_Y
set vertical pat position
--framerate FRAMERATE
set the frame rate limit. 0 or lower disables the
frame rate limit.
I didn't build in any function to directly create the GIFs, I instead captured the program running using OBS.
All code is GPL3. The example images come from iconart.dll and Microsoft Windows 95.