Package: gsk

Function gsk:repeating-linear-gradient-node-new

Lambda List

gsk:repeating-linear-gradient-node-new (bounds start end color-stops)

Arguments

bounds -- a graphene:rect-t instance with the rectangle to render the linear gradient into
start -- a graphene:point-t instance with the point at which the linear gradient will begin
end -- a graphene:point-t instance with the point at which the linear gradient will finish
color-stops -- a list of the form '((offset1 color1) (offset2 color2) ...) with the offsets and colors defining the gradient

Return Value

The new gsk:linear-gradient-node instance.

Details

Creates a render node that will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds.

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.
 

See also

#2023-11-27