fill method

fill

Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.

def fill(self):
    ...

fill

Fills the subpaths with the current fill style.

def fill(self, fill_rule):
    ...
ParameterTypeDescription
fill_ruleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path.

fill

Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.

def fill(self, path):
    ...
ParameterTypeDescription
pathPath2DA Path2D path to fill.

fill

Fills the subpaths with the current fill style.

def fill(self, path, fill_rule):
    ...
ParameterTypeDescription
pathPath2DA Path2D path to fill.
fill_ruleCanvasFillRuleThe algorithm by which to determine if a point is inside a path or outside a path.

See Also