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 between start and end.

Parameters:
  • start – The start node to be drawn

  • end – The node to be cross_fadeed onto the start node

  • progress – 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_progress() float

Retrieves the progress value of the cross fade.

get_start_child() RenderNode

Retrieves the child GskRenderNode at the beginning of the cross-fade.