Alpha blending calculator
Project description
blec: alpha blending calculator
This is a tool to calculate a resulting color of the alpha blending process. A gamma correction is enabled and the default transfer function is the one defined in sRGB.
Usage
Just enumerate colors from the bottom to the top. Let's blend 75% black on pure white
blec white black:0.75
blec fff 000000bf
blec ffffffff [0,0,0,191]
blec ffffff:1 [0,0,0]:0.75
Every call above does the same thing
Installation
pip3 install blec
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
blec-1.2.0.tar.gz
(5.3 kB
view details)
Built Distribution
blec-1.2.0-py3-none-any.whl
(6.1 kB
view details)
File details
Details for the file blec-1.2.0.tar.gz
.
File metadata
- Download URL: blec-1.2.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664eeffa6246089b6d510099110e49daaaeb5a3eeb981e12c6b0beb0af725237 |
|
MD5 | 1b4ddf8887bc26fa020090b118f7e961 |
|
BLAKE2b-256 | 1a29fded852a2fa08d23719b9c694c687b1f59dec13fc0189f0a78a43f66e33d |
File details
Details for the file blec-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: blec-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7617d34da30cd3a78b9d914925b0b5b47123fcf00e966839d9421cc4acf3d342 |
|
MD5 | 45af669caa8e536920707de2b0f0fbb5 |
|
BLAKE2b-256 | 8c453a270e29b23d4cf0ed3cb6ebb50acde70c0899b02d820e9eff96027dcc5d |