# Path: neuropsydia/core.py
# def color(color):
#     """
#     Returns an RGB color tuple (or list) from its name.
# 
#     Parameters
#     ----------
#     color = str
#         one from the color_list list
# 
#     Returns
#     ----------
#     tuple or list
# 
#     Example
#     ----------
#     >>> import neuropsydia as n
#     >>> n.start()
#     >>> print(n.color_list)
#     >>> print(n.color("blue"))
#     >>> n.close()
# 
#     Authors
#     ----------
#     Dominique Makowski
# 
#     Dependencies
#     ----------
#     None
#     """
#     if isinstance(color,str):
#         try:
#             return(color_list[color])
#         except:
#             print("NEUROPSYDIA WARNING: color() was used, however the argument " + str(color) + " was not detected and might cause errors.")
#             return(color)
#     else:
#         return(color)


from .path import *
from .core import *
from .write import *
from .core import color as core_color #avoid conflict with arg name
            font = Font.get(Path.font() + 'NotoSansCJKtc-Regular.otf', size)
        elif style is 'light':
            font = Font.get(Path.font() + 'NotoSansCJKtc-Light.otf', size)
        elif style is 'bold':
            font = Font.get(Path.font() + 'NotoSansCJKtc-Bold.otf', size)
        else:
            font = Font.get(style, size)
    else:
        if style is 'body':
            font = Font.get(Path.font() + 'RobotoRegular.ttf', size)
        elif style is 'light':
            font = Font.get(Path.font() + 'RobotoLight.ttf', size)
        elif style is 'bold':
            font = Font.get(Path.font() + 'RobotoBold.ttf', size)
        else:
            font = Font.get(style, size)


    # Adjust y position depending on order
    if order is not None:
        y = 5 - (order*1.25)


    # Convert coordinates to pygame compatible coordinates
    x, y = Coordinates.to_pygame(x=x, y=y)


    user_input = ''
    loop = True
    while loop is True:

# Path: neuropsydia/core.py
# def color(color):
#     """
#     Returns an RGB color tuple (or list) from its name.
# 
#     Parameters
#     ----------
#     color = str
#         one from the color_list list
# 
#     Returns
#     ----------
#     tuple or list
# 
#     Example
#     ----------
#     >>> import neuropsydia as n
#     >>> n.start()
#     >>> print(n.color_list)
#     >>> print(n.color("blue"))
#     >>> n.close()
# 
#     Authors
#     ----------
#     Dominique Makowski
# 
#     Dependencies
#     ----------
#     None
#     """
#     if isinstance(color,str):
#         try:
#             return(color_list[color])
#         except:
#             print("NEUROPSYDIA WARNING: color() was used, however the argument " + str(color) + " was not detected and might cause errors.")
#             return(color)
#     else:
#         return(color)


# Path: neuropsydia/ask.py
from .path import *
from .core import *
from .write import *
from .core import color as core_color #avoid conflict with arg name

            font = Font.get(Path.font() + 'NotoSansCJKtc-Regular.otf', size)
        elif style is 'light':
            font = Font.get(Path.font() + 'NotoSansCJKtc-Light.otf', size)
        elif style is 'bold':
            font = Font.get(Path.font() + 'NotoSansCJKtc-Bold.otf', size)
        else:
            font = Font.get(style, size)
    else:
        if style is 'body':
            font = Font.get(Path.font() + 'RobotoRegular.ttf', size)
        elif style is 'light':
            font = Font.get(Path.font() + 'RobotoLight.ttf', size)
        elif style is 'bold':
            font = Font.get(Path.font() + 'RobotoBold.ttf', size)
        else:
            font = Font.get(style, size)


    # Adjust y position depending on order
    if order is not None:
        y = 5 - (order*1.25)


    # Convert coordinates to pygame compatible coordinates
    x, y = Coordinates.to_pygame(x=x, y=y)


    user_input = ''
    loop = True
    while loop is True:

        surface = font.render(text_new, 1, core_color(color))