Skip to main content

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


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.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blec-1.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file blec-1.0.3.tar.gz.

File metadata

  • Download URL: blec-1.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for blec-1.0.3.tar.gz
Algorithm Hash digest
SHA256 75490e2acdf43d819ca25b9e762668965de8c77271ed3d3215a7c8caad213a5a
MD5 d6ee44d6eadcfaf659c951ff2dd64ad1
BLAKE2b-256 7e98d79b572f76a861b38ac328652bfe1c0393c35344a2f62c6553398dc801a1

See more details on using hashes here.

File details

Details for the file blec-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: blec-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for blec-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a272e2df553a9261e017767f65c216698ee83c4f1990b35a91030904f2470c5
MD5 c7aeab99894e9fc33029364d465f0d21
BLAKE2b-256 7f759649fa2a7bd910a12f264cf0a9936298a95e23a0246c90dfe3b66caef5c1

See more details on using hashes here.

Supported by

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