ColorMatrixNode


Description:

[ CCode ( has_construct_function = false , type = "GskRenderNode*" ) ]
public ColorMatrixNode (RenderNode child, Matrix color_matrix, Vec4 color_offset)

Creates a `GskRenderNode` that will drawn the child with color_matrix.

In particular, the node will transform colors 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.

Parameters:

child

The node to draw

color_matrix

The matrix to apply

color_offset

Values to add to the color

Returns:

A new `GskRenderNode`