blend.py

b is the bottom image.
t is the top image.

normal group

darken group

lighten group

contrast group

inversion group

cancellation group

component group