RadialGradientNode
Description:
[ CCode ( has_construct_function = false , type = "GskRenderNode*" ) ]
public RadialGradientNode (Rect bounds, Point center, float hradius, float vradius, float start, float end, ColorStop[] color_stops)
public RadialGradientNode (Rect bounds, Point center, float hradius, float vradius, float start, float end, ColorStop[] color_stops)
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.
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 |
| end |
a percentage >= 0 that defines the end of the gradient around |
| 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. |
| n_color_stops |
the number of elements in |
Returns:
|
A new `GskRenderNode` |