jit.alphablend Use the alpha channel of one image to blend two images together

The jit.alphablend object uses alpha channel (plane 0) of the input matrix in the left inlet as a per-cell crossfade value, and crossfades between the input matrices in the left and right inlets. In mode 0, a low value means more of the right input matrix, while a high value means more of the left input matrix. In mode 1, a low value means more of the left input matrix, while a high value means more of the right input matrix.

Matrix Operator: in[2] out[1]
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in n/a n/a n/a n/a n/a n/a n/a
in2 resamp yes yes yes all all char float32 float64
out n/a yes yes yes all all char float32 float64

Attributes:
Name Type Description
mode int Crossfade mode (default = 0 (left to right))
0 = crossfade right to left
1 = crossfade left to right

Example:

See Also:
jit.op, jit.pack, jit.unpack, jit.xfade