def get_ellipse_svg_text(
    cx, cy, rx, ry,
    fill_color=None,
    outline_color=None,
    outline_width=0,
):
    """Return SVG text representing file with an ellipse."""
    ### format fill color and outline color into a format
    ### used in SVG

    fill_color = _format_color(fill_color)

    stroke_color = _format_color(outline_color)

    ### define the dimensions of the SVG

    width = (rx * 2) + (outline_width * 2)
    height = (ry * 2) + (outline_width * 2)

    ### pass our data to a str.format() instance that formats the data
    ### into a string representing the contents of a svg file describing
    ### our ellipse, returning such string

    return (
        ELLIPSE_FORMATTER(
            width=width,
            height=height,
            cx=cx, cy=cy, rx=rx, ry=ry,
            fill_color=fill_color,
            stroke_color=stroke_color,
            stroke_width=outline_width,
        )
    )
Return SVG text representing file with an ellipse.
nodezator/svgutils.py