This script generates a 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 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.
Run the following command, replacing "your image" with the image you want the theme's colors to be pulled from:
schemer2 -format img::colors -in [your image] -out colors.txt && python3 AutoBase16Theme.py
Automating the execution of this so that it updates with your desktop background is left as an exercise for the reader :).