meshPatternBeginPatch

fnvoid meshPatternBeginPatch(cairo.pattern.Pattern pattern)

Begin a patch in a mesh pattern.

After calling this function, the patch shape should be defined with [cairo.global.meshPatternMoveTo], [cairo.global.meshPatternLineTo] and [cairo.global.meshPatternCurveTo].

After defining the patch, [cairo.global.meshPatternEndPatch] must be called before using pattern as a source or mask.

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 pattern already has a current patch, it will be put into an error status with a status of [cairo.types.Status.InvalidMeshConstruction].

Parameters

patterna #cairo_pattern_t