:right-sidebar: True ColorNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: ColorNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a solid color. 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``\. The value returned by this function will not be correct if the render node was created for a non-sRGB color.