Generate base16 color schemes from images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Macoy Madson 6f463a4cf3 Added readme, updated gitignore, added skeleton script 3 years ago
.gitignore Added readme, updated gitignore, added skeleton script 3 years ago
AutoBase16Theme.py Added readme, updated gitignore, added skeleton script 3 years ago
LICENSE Initial commit 3 years ago
ReadMe.org Added readme, updated gitignore, added skeleton script 3 years ago

ReadMe.org

Auto Base16 Theme

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.

Setup

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.

How to Use

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 :).