# 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
        information_content += 2. - entropy
        if logo_type == LOGO_TYPE.SUMMARY:
            emissions_tuple.sort(reverse=True)
            xposition, yposition = draw_summary_letters(output,
                                                        emissions_tuple, width,
                                                        xposition, yposition,
                                                        step, entropy)
        else:
            xposition += width + step
    return information_content


# TODO raise an error if the logo type is wrong
def draw_logo(output, tffm, logo_type):
    """
    Print the svg instructions to draw the logo to the output.

    :arg output: Stream where to write the svg instruction to draw the logo.
    :type output: file
    :arg tffm: TFFM from which to draw the logo.
    :type tffm: :class:`TFFM`
    :arg logo_type: Kind of logo to draw (either LOGO_TYPE.SUMMARY or
        LOGO_TYPE.DENSE)
    :type logo_type: Enum

    :todo: raise an error if the logo type is wrong.

    """

    header_y_coord = 60 * (len(tffm) + 2)

# 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

        information_content += 2. - entropy
        if logo_type == LOGO_TYPE.SUMMARY:
            emissions_tuple.sort(reverse=True)
            xposition, yposition = draw_summary_letters(output,
                                                        emissions_tuple, width,
                                                        xposition, yposition,
                                                        step, entropy)
        else:
            xposition += width + step
    return information_content


# TODO raise an error if the logo type is wrong
def draw_logo(output, tffm, logo_type):
    """
    Print the svg instructions to draw the logo to the output.

    :arg output: Stream where to write the svg instruction to draw the logo.
    :type output: file
    :arg tffm: TFFM from which to draw the logo.
    :type tffm: :class:`TFFM`
    :arg logo_type: Kind of logo to draw (either LOGO_TYPE.SUMMARY or
        LOGO_TYPE.DENSE)
    :type logo_type: Enum

    :todo: raise an error if the logo type is wrong.

    """

    header_y_coord = 60 * (len(tffm) + 2)

    if logo_type == LOGO_TYPE.SUMMARY: