ConicGradientNode


Description:

[ CCode ( has_construct_function = false , type = "GskRenderNode*" ) ]
public ConicGradientNode (Rect bounds, Point center, float rotation, ColorStop[] color_stops)

Creates a `GskRenderNode` that draws a conic gradient.

The conic gradient starts around center in the direction of rotation. A rotation of 0 means that the gradient points up. Color stops are then added clockwise.

Parameters:

bounds

the bounds of the node

center

the center of the gradient

rotation

the rotation of the gradient in degrees

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 color_stops

Returns:

A new `GskRenderNode`




2022 vala-language.org