Gsk.ColorMatrixNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.ColorMatrixNode¶
- Bases:
- Abstract:
No
A render node controlling the color matrix of its single child node.
- classmethod new(child, color_matrix, color_offset)¶
- Parameters:
child (
Gsk.RenderNode
) – The node to drawcolor_matrix (
Graphene.Matrix
) – The matrix to applycolor_offset (
Graphene.Vec4
) – Values to add to the color
- Returns:
A new
GskRenderNode
- Return type:
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:
Gets the child node that is getting its colors modified by the given self.
- get_color_matrix()¶
- Returns:
a 4x4 color matrix
- Return type:
Retrieves the color matrix used by the self.
- get_color_offset()¶
- Returns:
a color vector
- Return type:
Retrieves the color offset used by the self.