Package: gtk

Function gtk:snapshot-append-linear-gradient

Lambda List

gtk:snapshot-append-linear-gradient (snapshot bounds start end stops)

Arguments

snapshot -- a gtk:snapshot object
bounds -- a graphene:rect-t instance for the rectangle to render the linear gradient into
start -- a graphene:point-t instance for the point at which the linear gradient will begin
end -- a graphene:point-t instance for the point at which the linear gradient will finish
stops -- a list of the form '((offset1 color1) (offset2 color2) ...) with the offsets and colors defining the gradient
offset -- a number coerced to a single float for the offset of the color stop
color -- a gdk:rgba instance for the color at the given offset

Details

Appends a linear gradient node with the given color stops to snapshot.
 

See also

2025-2-12