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
GskRenderNodethat will do a cross-fade betweenstartandend.- Parameters:
start – The start node to be drawn
end – The node to be cross_fadeed onto the
startnodeprogress – 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
GskRenderNodeat the end of the cross-fade.
- get_start_child() RenderNode#
Retrieves the child
GskRenderNodeat the beginning of the cross-fade.