This script generates a [[https://github.com/chriskempson/base16][base16]] color theme intended for code syntax highlighting.
I'm primarily focusing on doing this for Emacs, but it should work for any editor which supports base16.
This script relies on [[https://github.com/thefryscorer/schemer2][schemer2]] to choose colors from images. It then takes the output of schemer2 and selects colors which fit the base16 format. Install schemer2:
: go get github.com/thefryscorer/schemer2
This script requires Python 3.
** How to Use
Run the following command, replacing "your image" with the image you want the theme's colors to be pulled from: