class RecolorQualifier extends EffectQualifier

Converts the colors of every pixel in an image based on the supplied color matrix, in which the value of each color channel is calculated based on the values from all other channels (e.g. a 3x3 matrix for RGB, a 4x4 matrix for RGBA or CMYK, etc).

For every pixel in the image, take each color channel and adjust its value by the specified values of the matrix to get a new value.

Methods

__construct(array|MatrixValue ...$colorMatrix)

Recolor constructor.

Details

__construct(array|MatrixValue ...$colorMatrix)

Recolor constructor.

Parameters

Name Type Description
...$colorMatrix array|MatrixValue