Package: cairo

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

Lambda List

cairo-mesh-pattern-get-corner-color-rgba (pattern patch-num corner-num)

Arguments

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

Return Value

red -- a double float red component of color
green -- a double float green component of color
blue -- a double float blue component of color
alpha -- a double float for alpha component of color
status -- :success, or :invalid-index if patch-num or corner-num is not valid for pattern. If pattern is not a mesh pattern, :pattern-type-mismatch is returned.

Details

Gets the color information in corner corner-num of patch patch-num for a mesh pattern.

patch-num can range 0 to 1 less than the number returned by the function cairo-mesh-pattern-get-patch-count.

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

See also

2020-12-25