RepeatingLinearGradientNode


Description:

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

Creates a RenderNode 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 ColorStop defining the gradient The offsets of all color steps 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 RenderNode