Package: gsk

Function gsk:color-matrix-node-new

Lambda List

gsk:color-matrix-node-new (child matrix offset)

Arguments

child -- a gsk:render-node instance for the child render node to draw
matrix -- a graphene:matrix-t instance for the matrix to apply
offset -- a graphene:vec4-t instance for the values to add to the color

Return Value

The new gsk:color-matrix-node instance.

Details

Creates a render node that will draw the child render node with matrix. In particular, the node will transform colors by applying
pixel = transpose(matrix) * pixel + offset  
for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A.
 

See also

2026-02-09