Package: gtk

Function gtk:snapshot-append-radial-gradient

Lambda List

gtk:snapshot-append-radial-gradient (snapshot bounds center hradius vradius start end stops)

Arguments

snapshot -- a gtk:snapshot object
bounds -- a graphene:rect-t instance for the rectangle to render the radial gradient into
center -- a graphene:point-t instance for the center of the radial gradient
hradius -- a number coerced to a single float for the horizontal radius
vradius -- a number coerced to a single float for the vertical radius
start -- a number coerced to a single float for the percentage >= 0 that defines the start of the radial gradient around center
end -- a number coerced to a single float for the percentage >= 0 that defines the end of the radial gradient around center
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 radial gradient node with the given stops to snapshot.
 

See also

#2025-2-12