Sets the color of a corner of the current patch in a mesh pattern.

cairo_mesh_pattern_set_corner_color_rgb(pattern, corner_num, red, green, blue)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

corner_num

[unsigned int] the corner to set the color for

red

[double] red component of color

green

[double] green component of color

blue

[double] blue component of color

Details

The color is specified in the same way as in cairo_set_source_rgb().

Valid values for corner_num are from 0 to 3 and identify the corners as explained in cairo_pattern_create_mesh().

Note: If pattern is not a mesh pattern then pattern will be put into an error status with a status of %CAIRO_STATUS_PATTERN_TYPE_MISMATCH. If corner_num is not valid, pattern will be put into an error status with a status of %CAIRO_STATUS_INVALID_INDEX. If pattern has no current patch, pattern will be put into an error status with a status of %CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.

Since: 1.12

C function prototype: void cairo_mesh_pattern_set_corner_color_rgb (cairo_pattern_t *pattern, unsigned int corner_num, double red, double green, double blue)

See also