1.33 <GskRepeatingRadialGradientNode>

Class: <GskRepeatingRadialGradientNode>

It derives from <GskRenderNode>.

A render node for a repeating radial gradient.

Procedures

Procedure: repeating-radial-gradient-node:new bounds center hradius vradius start end color-stops ⇒ %return

Creates a <GskRenderNode> that draws a repeating 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.

bounds

Passed: a <GrapheneRect>.

the bounds of the node

center

Passed: a <GraphenePoint>.

the center of the gradient

hradius

Passed: a real number.

the horizontal radius

vradius

Passed: a real number.

the vertical radius

start

Passed: a real number.

a percentage >= 0 that defines the start of the gradient around center

end

Passed: a real number.

a percentage >= 0 that defines the end of the gradient around center

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 <GskRepeatingRadialGradientNode>.

A new <GskRenderNode>

n-color-stops

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

the number of elements in color-stops