1.32 <GskRepeatingLinearGradientNode>

Class: <GskRepeatingLinearGradientNode>

It derives from <GskRenderNode>.

A render node for a repeating linear gradient.

Procedures

Procedure: repeating-linear-gradient-node:new bounds start end color-stops ⇒ %return

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.

bounds

Passed: a <GrapheneRect>.

the rectangle to render the linear gradient into

start

Passed: a <GraphenePoint>.

the point at which the linear gradient will begin

end

Passed: a <GraphenePoint>.

the point at which the linear gradient will finish

color-stops

Passed: a list or vector, each a <GskColorStop>.

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.

%return

Returned: a <GskRepeatingLinearGradientNode>.

A new <GskRenderNode>

n-color-stops

Not passed: guile-gi gives the length of color-stops.

the number of elements in color-stops