clip method

clip

Modifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill. This method terminates current path.

def clip(self, mode):
    ...
ParameterTypeDescription
modeFillRuleFilling mode specifies how the interior of a closed path is clipped

See Also