CrossFadeNode
- class CrossFadeNode(*args, **kwargs)
Superclasses: RenderNode
A render node cross fading between two child nodes.
Constructors
- class CrossFadeNode
- classmethod new(start: RenderNode, end: RenderNode, progress: float) CrossFadeNode
Creates a
GskRenderNode
that will do a cross-fade betweenstart
andend
.- Parameters:
start – The start node to be drawn
end – The node to be cross_fadeed onto the
start
nodeprogress – How far the fade has progressed from start to end. The value will be clamped to the range [0 … 1]
Methods
- class CrossFadeNode
- get_end_child() RenderNode
Retrieves the child
GskRenderNode
at the end of the cross-fade.
- get_start_child() RenderNode
Retrieves the child
GskRenderNode
at the beginning of the cross-fade.