Package: cairo

Function cairo:mesh-pattern-set-corner-color-rgb

Lambda List

cairo:mesh-pattern-set-corner-color-rgb (pattern index red green blue)

Arguments

pattern -- a cairo:pattern-t instance
corner -- an unsigned integer for the corner to set the color for
red -- a number coerced to a double float for the red component of the color
green -- a number coerced to a double float for the green component of the color
blue -- a number coerced to a double float for the blue component of the color

Details

Sets the color of a corner of the current patch in a mesh pattern. The color is specified in the same way as for the cairo:set-source-rgb function.

Valid values for corner are from 0 to 3 and identify the corners as explained for the cairo:pattern-create-mesh function.

Notes

If the pattern argument is not a mesh pattern then pattern will be put into an error status with a :pattern-type-mismatch value. If corner is not valid, pattern will be put into an error status with a :invalid-index value. If pattern has no current patch, pattern will be put into an error status with a :invalid-mesh-construction value.
 

See also

2025-1-19