Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christianchiarulli/colorblender
A python script to blend hex values
https://github.com/christianchiarulli/colorblender
color command-line-tool hacktoberfest hacktoberfest2022 hex neovim python utility
Last synced: 3 months ago
JSON representation
A python script to blend hex values
- Host: GitHub
- URL: https://github.com/christianchiarulli/colorblender
- Owner: ChristianChiarulli
- License: gpl-3.0
- Created: 2022-07-23T05:25:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T07:10:07.000Z (over 1 year ago)
- Last Synced: 2024-10-11T20:37:55.137Z (3 months ago)
- Topics: color, command-line-tool, hacktoberfest, hacktoberfest2022, hex, neovim, python, utility
- Language: Python
- Homepage: https://www.chrisatmachine.com/
- Size: 1.16 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# colorblender.py
![banner](./assets/banner.png)
A python script to blend hex colors![demo](./assets/demo.png)
## 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
```sh
$ python colorblender.py '#ffffff' '#000000' 0.1
#1a1a1a
``````sh
$ python colorblender.py ffffff 000000 0.1
#1a1a1a
```## References & Credit
[tokyonight.nvim](https://github.com/folke/tokyonight.nvim)