Package: cairo

Function cairo:mesh-pattern-corner-color-rgba

Lambda List

cairo:mesh-pattern-corner-color-rgba (pattern index corner)

Arguments

pattern -- a cairo:pattern-t instance
index -- an unsigned integer for the patch number to return data for
corner -- an unsigned integer for the corner number to return data for

Return Value

red -- a number with the red component of the color
green -- a number with the green component of the color
blue -- a number with the blue component of the color
alpha -- a number with the alpha component of the color

Details

Gets the color information in corner corner of patch index for a mesh pattern. Returns nil if pattern or index and corner are not valid for pattern.

The index argument can range 0 to 1 less than the number returned by the cairo:mesh-pattern-patch-count function.

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

Notes

The numbers returned are double floats.
 

See also

2025-1-19