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
GskRenderNodethat will useblend_modeto blend thetopnode onto thebottomnode.- Parameters:
bottom – The bottom node to be drawn
top – The node to be blended onto the
bottomnodeblend_mode – The blend mode to use
Methods#
- class BlendNode
-
- get_bottom_child() RenderNode#
Retrieves the bottom
GskRenderNodechild of thenode.
- get_top_child() RenderNode#
Retrieves the top
GskRenderNodechild of thenode.