jit.alphablend

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

Description

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

matrix inputs:2, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in2 resamp 1 1 1 1 1 char float32 float64
out n/a 1 1 1 1 1 char float32 float64

Information for Jitter Matrix Operator (MOP) messages and attributes to this object

Attributes

Name Type g/s Description
mode int Crossfade mode (default = 0 (left to right))
0 = crossfade right to left
1 = crossfade left to right

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.op Apply binary or unary operators
jit.pack Make a multiplane matrix out of single plane matrices
jit.unpack Make multiple single plane matrices out of a multiplane matrix
jit.xfade Crossfade between 2 matrices
Tutorial 29: Using the Alpha Channel Tutorial 29: Using the Alpha Channel