:right-sidebar: True ColorMatrixNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ColorMatrixNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node controlling the color matrix of its single child node. Constructors ------------ .. rst-class:: interim-class .. class:: ColorMatrixNode :no-index: .. classmethod:: new(child: ~gi.repository.Gsk.RenderNode, color_matrix: ~gi.repository.Graphene.Matrix, color_offset: ~gi.repository.Graphene.Vec4) -> ~gi.repository.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. :param child: The node to draw :param color_matrix: The matrix to apply :param color_offset: Values to add to the color Methods ------- .. rst-class:: interim-class .. class:: ColorMatrixNode :no-index: .. method:: get_child() -> ~gi.repository.Gsk.RenderNode Gets the child node that is getting its colors modified by the given ``node``\. .. method:: get_color_matrix() -> ~gi.repository.Graphene.Matrix Retrieves the color matrix used by the ``node``\. .. method:: get_color_offset() -> ~gi.repository.Graphene.Vec4 Retrieves the color offset used by the ``node``\.