Gsk.RepeatingRadialGradientNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.RepeatingRadialGradientNode¶
- Bases:
- 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 nodecenter (
Graphene.Point
) – the center of the gradienthradius (
float
) – the horizontal radiusvradius (
float
) – the vertical radiusstart (
float
) – a percentage >= 0 that defines the start of the gradient around centerend (
float
) – a percentage >= 0 that defines the end of the gradient around centercolor_stops ([
Gsk.ColorStop
]) – a pointer to an array ofGskColorStop
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:
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.