OpacityNode#

class OpacityNode(*args, **kwargs)#

Superclasses: RenderNode

A render node controlling the opacity of its single child node.

Constructors#

class OpacityNode
classmethod new(child: RenderNode, opacity: float) OpacityNode#

Creates a GskRenderNode that will drawn the child with reduced opacity.

Parameters:
  • child – The node to draw

  • opacity – The opacity to apply

Methods#

class OpacityNode
get_child() RenderNode#

Gets the child node that is getting opacityed by the given node.

get_opacity() float#

Gets the transparency factor for an opacity node.