:right-sidebar: True RadialGradientNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: RadialGradientNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a radial gradient. Constructors ------------ .. rst-class:: interim-class .. class:: RadialGradientNode :no-index: .. classmethod:: new(bounds: ~gi.repository.Graphene.Rect, center: ~gi.repository.Graphene.Point, hradius: float, vradius: float, start: float, end: float, color_stops: list[~gi.repository.Gsk.ColorStop]) -> ~gi.repository.Gsk.RadialGradientNode Creates a ``GskRenderNode`` that draws a radial gradient. The radial gradient starts around ``center``\. The size of the gradient is dictated by ``hradius`` in horizontal orientation and by ``vradius`` in vertical orientation. :param bounds: the bounds of the node :param center: the center of the gradient :param hradius: the horizontal radius :param vradius: the vertical radius :param start: a percentage >= 0 that defines the start of the gradient around ``center`` :param end: a percentage >= 0 that defines the end of the gradient around ``center`` :param color_stops: a pointer to an array of ``GskColorStop`` defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1. Methods ------- .. rst-class:: interim-class .. class:: RadialGradientNode :no-index: .. method:: get_center() -> ~gi.repository.Graphene.Point Retrieves the center pointer for the gradient. .. method:: get_color_stops() -> list[~gi.repository.Gsk.ColorStop] Retrieves the color stops in the gradient. .. method:: get_end() -> float Retrieves the end value for the gradient. .. method:: get_hradius() -> float Retrieves the horizontal radius for the gradient. .. method:: get_n_color_stops() -> int Retrieves the number of color stops in the gradient. .. method:: get_start() -> float Retrieves the start value for the gradient. .. method:: get_vradius() -> float Retrieves the vertical radius for the gradient.