line_to method

line_to(self, point)

Adds line to the end of the path

def line_to(self, point):
    ...
ParameterTypeDescription
pointPointFEnd point of the line

line_to(self, x, y)

Adds line to the end of the path

def line_to(self, x, y):
    ...
ParameterTypeDescription
xfloatX coordinate of the end point of the line
yfloatY coordinate of the end point of the line

line_to(self, point, index)

Adds line to the specified place of the path

def line_to(self, point, index):
    ...
ParameterTypeDescription
pointPointFEnd point
indexintIndex of segment in PathData

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentOutOfRangeException))Segment index is out of PathData range

line_to(self, x, y, index)

Adds line to the specified place of the path

def line_to(self, x, y, index):
    ...
ParameterTypeDescription
xfloatX coordinate of the point
yfloatY coordinate of the point
indexintIndex of segment in PathData

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentOutOfRangeException))Segment index is out of PathData range

See Also