Package: gsk
Function gsk:linear-gradient-node-new
Lambda Listgsk:linear-gradient-node-new (bounds start end color-stops) Argumentsbounds -- 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 ValueThe new gsk:linear-gradient-node instance. Details
Creates a render node that will create a 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