meshPatternSetCornerColorRgb

fnvoid meshPatternSetCornerColorRgb(cairo.pattern.Pattern pattern, uint cornerNum, double red, double green, double blue)

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

The color is specified in the same way as in [cairo.context.Context.setSourceRgb].

Valid values for corner_num are from 0 to 3 and identify the corners as explained in [cairo.global.patternCreateMesh].

Note

If pattern is not a mesh pattern then pattern will be put

into an error status with a status of [cairo.types.Status.PatternTypeMismatch]. If corner_num is not valid, pattern will be put into an error status with a status of [cairo.types.Status.InvalidIndex]. If pattern has no current patch, pattern will be put into an error status with a status of [cairo.types.Status.InvalidMeshConstruction].

Parameters

patterna #cairo_pattern_t
cornerNumthe corner to set the color for
redred component of color
greengreen component of color
blueblue component of color