:right-sidebar: True ColorNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ColorNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` :Constructors: :: ColorNode(**properties) new(rgba:Gdk.RGBA, bounds:Graphene.Rect) -> Gsk.ColorNode Constructors ------------ .. rst-class:: interim-class .. class:: ColorNode :no-index: .. classmethod:: new(rgba: ~gi.repository.Gdk.RGBA, bounds: ~gi.repository.Graphene.Rect) -> ~gi.repository.Gsk.ColorNode Creates a ``GskRenderNode`` that will render the color specified by ``rgba`` into the area given by ``bounds``. :param rgba: a ``GdkRGBA`` specifying a color :param bounds: the rectangle to render the color into Methods ------- .. rst-class:: interim-class .. class:: ColorNode :no-index: .. method:: get_color() -> ~gi.repository.Gdk.RGBA Retrieves the color of the given ``node``.