Skip to main content

Alpha blending calculator

Project description

blec: alpha blending calculator

This is a simple tool to calculate a resulting color of the alpha blending process. A gamma correction is enabled and the default gamma value is 2.2.

Usage

Just enumerate colors from the bottom to the top

$ ./blec.py 555555dd ffffffcc 00000011
#e4e4e4f8

You may use ARGB instead of RGBA

$ ./blec.py --argb dd555555 ccffffff 11000000
#f8e4e4e4

You may change gamma value (set it to 1 to disable)

$ ./blec.py --gamma 3 555555dd ffffffcc 00000011
#eaeaeaf8

Installation

Just clone this repository:

git clone https://github.com/igrmk/blec.git

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blec-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

blec-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page