ellipse method

ellipse

Adds an elliptical arc to the path.

def ellipse(self, x, y, radius_x, radius_y, rotation, start_angle, end_angle):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the center of the ellipse.
yfloatThe y-coordinate of the center of the ellipse.
radius_xfloatThe radius of the ellipse along the x-axis.
radius_yfloatThe radius of the ellipse along the y-axis.
rotationfloatThe rotation angle of the ellipse in radians.
start_anglefloatThe starting angle of the arc in radians.
end_anglefloatThe ending angle of the arc in radians.

ellipse

Adds an elliptical arc to the path.

def ellipse(self, x, y, radius_x, radius_y, rotation, start_angle, end_angle, anticlockwise):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the center of the ellipse.
yfloatThe y-coordinate of the center of the ellipse.
radius_xfloatThe radius of the ellipse along the x-axis.
radius_yfloatThe radius of the ellipse along the y-axis.
rotationfloatThe rotation angle of the ellipse in radians.
start_anglefloatThe starting angle of the arc in radians.
end_anglefloatThe ending angle of the arc in radians.
anticlockwiseboolSpecifies whether the arc should be drawn in the anticlockwise direction.

See Also