BlendNode

class BlendNode(*args, **kwargs)

Superclasses: RenderNode

A render node applying a blending function between its two child nodes.

Constructors

class BlendNode
classmethod new(bottom: RenderNode, top: RenderNode, blend_mode: BlendMode) BlendNode

Creates a GskRenderNode that will use blend_mode to blend the top node onto the bottom node.

Parameters:
  • bottom – The bottom node to be drawn

  • top – The node to be blended onto the bottom node

  • blend_mode – The blend mode to use

Methods

class BlendNode
get_blend_mode() BlendMode

Retrieves the blend mode used by node.

get_bottom_child() RenderNode

Retrieves the bottom GskRenderNode child of the node.

get_top_child() RenderNode

Retrieves the top GskRenderNode child of the node.