Code to generate an animated GIF showing evolution of the Sudoku board.
- Node 6+
cd animation
npm install
npm run generate
Surge.sh is a platform for easily publishing static websites and content.
To publish the generated GIF to Surge.sh, generate a token and provide it via environment variables:
SURGE_LOGIN=<your login email> SURGE_TOKEN=<Surge token> CI=1 node ./index.js
- Get list of commit SHAs using
git log
- For each commit, get state of the Sudoku table using
git show ${SHA}:READEME.md
- Render each state in headless browser via Puppeteer to PNG
- Create animated GIF from generated PNGs using gifencoder
- Optionally, upload generated GIF to Surge.sh