ColorMatrixNode.this

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.

  1. this(void* ptr, Flag!"Take" take)
  2. this(gsk.render_node.RenderNode child, graphene.matrix.Matrix colorMatrix, graphene.vec4.Vec4 colorOffset)

Parameters

child gsk.render_node.RenderNode

The node to draw

colorMatrix graphene.matrix.Matrix

The matrix to apply

colorOffset graphene.vec4.Vec4

Values to add to the color

Return Value