RepeatingLinearGradientNode

class RepeatingLinearGradientNode(*args, **kwargs)

Superclasses: RenderNode

A render node for a repeating linear gradient.

Constructors

class RepeatingLinearGradientNode
classmethod new(bounds: Rect, start: Point, end: Point, color_stops: Sequence[ColorStop]) RepeatingLinearGradientNode

Creates a GskRenderNode that will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds.

Parameters:
  • bounds – the rectangle to render the linear gradient into

  • start – the point at which the linear gradient will begin

  • end – the point at which the linear gradient will finish

  • 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.