Package: gtk

Function gtk:snapshot-append-conic-gradient

Lambda List

gtk:snapshot-append-conic-gradient (snapshot bounds center rotation stops)

Arguments

snapshot -- a gtk:snapshot object
bounds -- a graphene:rect-t instance for the bounds of the render node
center -- a graphene:point-t instance for the center of the gradient
rotation -- a number coerced to a single float for the rotation of the gradient, in degrees
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 conic gradient node with the given stops to snapshot.
 

See also

#2025-2-12