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 useblend_mode
to blend thetop
node onto thebottom
node.- Parameters:
bottom – The bottom node to be drawn
top – The node to be blended onto the
bottom
nodeblend_mode – The blend mode to use
Methods#
- class BlendNode
-
- get_bottom_child() RenderNode #
Retrieves the bottom
GskRenderNode
child of thenode
.
- get_top_child() RenderNode #
Retrieves the top
GskRenderNode
child of thenode
.