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.


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


pip3 install blec


GitHub - igrmk/blec: Alpha blending calculator
Alpha blending calculator. Contribute to igrmk/blec development by creating an account on GitHub.