Gsk.RepeatingRadialGradientNode

g Gsk.RenderNode Gsk.RenderNode Gsk.RepeatingRadialGradientNode Gsk.RepeatingRadialGradientNode Gsk.RenderNode->Gsk.RepeatingRadialGradientNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (bounds, center, hradius, vradius, start, end, color_stops)

Virtual Methods

None

Fields

None

Class Details

class Gsk.RepeatingRadialGradientNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a repeating radial gradient.

classmethod new(bounds, center, hradius, vradius, start, end, color_stops)
Parameters:
  • bounds (Graphene.Rect) – the bounds of the node

  • center (Graphene.Point) – the center of the gradient

  • hradius (float) – the horizontal radius

  • vradius (float) – the vertical radius

  • start (float) – a percentage >= 0 that defines the start of the gradient around center

  • end (float) – a percentage >= 0 that defines the end of the gradient around center

  • color_stops ([Gsk.ColorStop]) – 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.

Returns:

A new GskRenderNode

Return type:

Gsk.RepeatingRadialGradientNode

Creates a GskRenderNode that draws a repeating 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.