ColorNode#

class ColorNode(*args, **kwargs)#

Superclasses: RenderNode

A render node for a solid color.

Constructors#

class ColorNode
classmethod new(rgba: RGBA, bounds: Rect) ColorNode#

Creates a GskRenderNode that will render the color specified by rgba into the area given by bounds.

Parameters:
  • rgba – a GdkRGBA specifying a color

  • bounds – the rectangle to render the color into

Methods#

class ColorNode
get_color() RGBA#

Retrieves the color of the given node.

The value returned by this function will not be correct if the render node was created for a non-sRGB color.