# Path: constants.py
# BLACK = (0, 0, 0)
# 
# WHITE = (255, 255, 255)
# 
# BLUE = (0, 0, 128)
# 
# RED = (178, 34, 34)
# 
# GREEN = (0, 100, 0)
# 
# YELLOW = (255, 165, 0)
# 
# ALPHABET = ['A', 'C', 'G', 'T']
# 
# Path: constants.py
# TFFM_KIND = enum(FIRST_ORDER="1st-order", DETAILED="detailed",
#                  ZERO_ORDER="0-order")
# 
# LOGO_TYPE = enum(SUMMARY="summary", DENSE="dense")


from constants import BLACK, WHITE, BLUE, RED, GREEN, YELLOW, ALPHABET
from constants import TFFM_KIND, LOGO_TYPE
import tffm_module
                 opacity=1.0):
    """
    Print the svg instructions to draw an ellipse to the output.

    :arg output: Stream where to write.
    :type output: file
    :arg x_center: x-coordinate of the center of the ellipse.
    :type x_center: float
    :arg y_center: y-coordinate of the center of the ellipse.
    :type y_center: float
    :arg x_radius: Radius of the ellipse on the x-axis.
    :type x_radius: float
    :arg y_radius: Radius of the ellipse on the y-ayis.
    :type y_radius: float
    :arg colour: Color of the ellipse (default: black). The colour is given in
        RGB.
    :type colour: tuple (int, int, int)
    :arg opacity: Opacity of the ellipse (default: 1.0)
    :type opacity: float

    :note: Look at the ellipse statement of an svg file for more information.

    """

    output.write("<ellipse cx=\"%f\" cy=\"%f\" rx=\"%f\" ry=\"%f\" " %
                 (x_center, y_center, x_radius, y_radius))
    output.write("fill=\"rgb%s\" style=\"fill-opacity:%.2f\" />\n" %
                 (str(colour), opacity))



# Path: constants.py
# BLACK = (0, 0, 0)
# 
# WHITE = (255, 255, 255)
# 
# BLUE = (0, 0, 128)
# 
# RED = (178, 34, 34)
# 
# GREEN = (0, 100, 0)
# 
# YELLOW = (255, 165, 0)
# 
# ALPHABET = ['A', 'C', 'G', 'T']
# 
# Path: constants.py
# TFFM_KIND = enum(FIRST_ORDER="1st-order", DETAILED="detailed",
#                  ZERO_ORDER="0-order")
# 
# LOGO_TYPE = enum(SUMMARY="summary", DENSE="dense")


# Path: drawing.py
from constants import BLACK, WHITE, BLUE, RED, GREEN, YELLOW, ALPHABET
from constants import TFFM_KIND, LOGO_TYPE
import tffm_module

                 opacity=1.0):
    """
    Print the svg instructions to draw an ellipse to the output.

    :arg output: Stream where to write.
    :type output: file
    :arg x_center: x-coordinate of the center of the ellipse.
    :type x_center: float
    :arg y_center: y-coordinate of the center of the ellipse.
    :type y_center: float
    :arg x_radius: Radius of the ellipse on the x-axis.
    :type x_radius: float
    :arg y_radius: Radius of the ellipse on the y-ayis.
    :type y_radius: float
    :arg colour: Color of the ellipse (default: black). The colour is given in
        RGB.
    :type colour: tuple (int, int, int)
    :arg opacity: Opacity of the ellipse (default: 1.0)
    :type opacity: float

    :note: Look at the ellipse statement of an svg file for more information.

    """

    output.write("<ellipse cx=\"%f\" cy=\"%f\" rx=\"%f\" ry=\"%f\" " %
                 (x_center, y_center, x_radius, y_radius))
    output.write("fill=\"rgb%s\" style=\"fill-opacity:%.2f\" />\n" %
                 (str(colour), opacity))



def draw_polygon(output, pts, colour=BLACK, opacity=1.0):