A tool for blending hex colors
Project description
colorblender.py
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colorblender-0.0.1.tar.gz.
File metadata
- Download URL: colorblender-0.0.1.tar.gz
- Upload date:
- Size: 104.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28110194ea3a512db2f58475730e95a32046c0db750a071b8a586fa542922694
|
|
| MD5 |
196861c5463cb153e06c4499dc6aea18
|
|
| BLAKE2b-256 |
88e886a688db17e6f9d6da49a6ea7aef4af3147f43fac869070d22ec1971b0e3
|
File details
Details for the file colorblender-0.0.1-py3-none-any.whl.
File metadata
- Download URL: colorblender-0.0.1-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635e4e0ae13d07b29d68d304080d1986ce711e294be41f253aac7e2079db8ff7
|
|
| MD5 |
f3ab203344db6bc443140ac628c3019f
|
|
| BLAKE2b-256 |
70cef3369a6c4e88147c9301e1759659ccc6934b80d6d0b4a5b6c1468773d19e
|