RepeatingRadialGradientNode#
- class RepeatingRadialGradientNode(*args, **kwargs)#
Superclasses: RenderNode
A render node for a repeating radial gradient.
Constructors#
- class RepeatingRadialGradientNode
- classmethod new(bounds: Rect, center: Point, hradius: float, vradius: float, start: float, end: float, color_stops: list[ColorStop]) RepeatingRadialGradientNode#
Creates a
GskRenderNodethat draws a repeating radial gradient.The radial gradient starts around
center. The size of the gradient is dictated byhradiusin horizontal orientation and byvradiusin vertical orientation.- Parameters:
bounds – the bounds of the node
center – the center of the gradient
hradius – the horizontal radius
vradius – the vertical radius
start – a percentage >= 0 that defines the start of the gradient around
centerend – a percentage >= 0 that defines the end of the gradient around
centercolor_stops – a pointer to an array of
GskColorStopdefining 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.