Path2D constructor

init

returns a newly instantiated Path2D object

def __init__(self):
    ...

init

returns a newly instantiated Path2D object with another path as an argument (creates a copy)

def __init__(self, path):
    ...
ParameterTypeDescription
pathPath2DWhen invoked with another Path2D object, a copy of the path argument is created

init

returns a newly instantiated Path2D object with a string consisting of SVG path data.

def __init__(self, d):
    ...
ParameterTypeDescription
dstrThe string consisting of SVG path data

See Also