ColorMatrixNode.this
this
(gsk.render_node.RenderNode child, graphene.matrix.Matrix colorMatrix, graphene.vec4.Vec4 colorOffset)Creates a [gsk.render_node.RenderNode] 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 |
colorMatrix | The matrix to apply |
colorOffset | Values to add to the color |
Returns
A new [gsk.render_node.RenderNode]