meshPatternSetCornerColorRgba

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.setSourceRgba.

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.

void
meshPatternSetCornerColorRgba
(,,
double red
,
double green
,
double blue
,
double alpha
)

Parameters

pattern cairo.pattern.Pattern

a #cairo_pattern_t

cornerNum uint

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

alpha double

alpha component of color