ellipse method

ellipse

Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).

def ellipse(self, x, y, radius_x, radius_y, rotation, start_angle, end_angle):
    ...
ParameterTypeDescription
xfloatThe x axis of the coordinate for the ellipse’s center.
yfloatThe y axis of the coordinate for the ellipse’s center.
radius_xfloatThe ellipse’s major-axis radius.
radius_yfloatThe ellipse’s minor-axis radius.
rotationfloatThe rotation for this ellipse, expressed in radians.
start_anglefloatThe starting point, measured from the x axis, from which it will be drawn, expressed in radians.
end_anglefloatThe end ellipse’s angle to which it will be drawn, expressed in radians.

ellipse

Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).

def ellipse(self, x, y, radius_x, radius_y, rotation, start_angle, end_angle, anticlockwise):
    ...
ParameterTypeDescription
xfloatThe x axis of the coordinate for the ellipse’s center.
yfloatThe y axis of the coordinate for the ellipse’s center.
radius_xfloatThe ellipse’s major-axis radius.
radius_yfloatThe ellipse’s minor-axis radius.
rotationfloatThe rotation for this ellipse, expressed in radians.
start_anglefloatThe starting point, measured from the x axis, from which it will be drawn, expressed in radians.
end_anglefloatThe end ellipse’s angle to which it will be drawn, expressed in radians.
anticlockwiseboolAn optional boolean which, if true, draws the ellipse anticlockwise (counter-clockwise), otherwise in a clockwise direction.

See Also