https://github.com/igrmk/blec
Alpha blending calculator
https://github.com/igrmk/blec
alpha-blending cli python
Last synced: about 1 year ago
JSON representation
Alpha blending calculator
- Host: GitHub
- URL: https://github.com/igrmk/blec
- Owner: igrmk
- License: mit
- Created: 2020-05-05T17:14:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T00:27:32.000Z (almost 5 years ago)
- Last Synced: 2024-10-04T23:47:44.785Z (over 1 year ago)
- Topics: alpha-blending, cli, python
- Language: Python
- Size: 21.5 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
blec: alpha blending calculator
===============================
[](https://pypi.org/project/blec/)
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