colorblender

A python script to blend hex values

GPL-3.0 License

Downloads
61
Stars
8
Committers
2

colorblender.py

banner A python script to blend hex colors

Usage

Accepts two hex colors and an alpha in the following order:

foreground background alpha

The closer the alpha is to 0 the more prominent the background will be in the resulting color

The closer the alpha is to 1 the more prominent the foreground will be in the resulting color

NOTE: # is interpreted as a comment so we need to wrap the input in quotes

$ python colorblender.py '#ffffff' '#000000' 0.1
#1a1a1a
$ python colorblender.py ffffff 000000 0.1
#1a1a1a

References & Credit

tokyonight.nvim

Package Rankings
Top 28.67% on Pypi.org