ComponentTransferNode#

Added in version 4.20.

class ComponentTransferNode(*args, **kwargs)#

Superclasses: RenderNode

A render node for applying a GskComponentTransfer for each color component of the child node.

Constructors#

class ComponentTransferNode
classmethod new(child: RenderNode, r: ComponentTransfer, g: ComponentTransfer, b: ComponentTransfer, a: ComponentTransfer) ComponentTransferNode#

Creates a render node that will apply component transfers to a child node.

Added in version 4.20.

Parameters:
  • child – The child to apply component transfers to

  • r – transfer for the red component

  • g – transfer for the green component

  • b – transfer for the blue component

  • a – transfer for the alpha component

Methods#

class ComponentTransferNode
get_child() RenderNode#

Gets the child node that is getting drawn by the given node.

Added in version 4.20.

get_transfer(component: ColorChannel) ComponentTransfer#

Gets the component transfer for one of the components.

Added in version 4.20.

Parameters:

component – the component to get the transfer for