cyanharlow / purecss-francine

HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.
7.74k stars 511 forks source link

Script to take historic png screenshots of Francine #41

Closed miguelff closed 4 years ago

miguelff commented 5 years ago

👋 @cyanharlow

I was curious to see the evolution of Francine over time. For that reason, I hacked (in the strict sense) a ruby script that walks the git history and takes a screenshot of Francine at that point in time. Each screenshot is saved to screenshots/$INDEX_$SHA.png file, where $INDEX is the position of the change in the history in chronological order.

gif

Provided that you are running on a Mac with homebrew installed, brew bundle && ./generate_screenshots should be all you need to do. Note the first time the script runs, it will take a bit longer if you don't have the required dependencies installed.

These PR might or might not make sense to be merged into master, but in case you want to take a look at the script, here it is.

I ❤️your work! Thank you!

adi518 commented 4 years ago

That's just genius.