Gsk.ColorMatrixNode

g Gsk.ColorMatrixNode Gsk.ColorMatrixNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.ColorMatrixNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (child, color_matrix, color_offset)

get_child ()

get_color_matrix ()

get_color_offset ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.ColorMatrixNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node controlling the color matrix of its single child node.

classmethod new(child, color_matrix, color_offset)
Parameters:
Returns:

A new GskRenderNode

Return type:

Gsk.ColorMatrixNode

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.

get_child()
Returns:

The child that is getting its colors modified

Return type:

Gsk.RenderNode

Gets the child node that is getting its colors modified by the given self.

get_color_matrix()
Returns:

a 4x4 color matrix

Return type:

Graphene.Matrix

Retrieves the color matrix used by the self.

get_color_offset()
Returns:

a color vector

Return type:

Graphene.Vec4

Retrieves the color offset used by the self.