Snapshot.pushColorMatrix

Modifies the colors of an image by applying an affine transformation in RGB space.

In particular, the colors will be transformed by applying

pixel = transpose(color_matrix) * pixel + color_offset

for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A.

The image is recorded until the next call to gtk.snapshot.Snapshot.pop.

Parameters

colorMatrix graphene.matrix.Matrix

the color matrix to use

colorOffset graphene.vec4.Vec4

the color offset to use