RepeatingLinearGradientNode


Description:

[ CCode ( has_construct_function = false , type = "GskRenderNode*" ) ]
public RepeatingLinearGradientNode (Rect bounds, Point start, Point end, ColorStop[] color_stops)

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.

n_color_stops

the number of elements in color_stops

Returns:

A new `GskRenderNode`




2022 vala-language.org