# Copyright 2021 iiPython

# Color list
colors = {
    # Normal colors
    "red": "\033[91m",
    "cyan": "\033[36m",
    "blue": "\033[94m",
    "green": "\033[92m",
    "yellow": "\033[93m",

    # Reset character
    "reset": "\033[0m"
}

# Handle colors
def colored(text, color: str = "blue"):
    text = str(text)
    if color not in colors:
        raise ValueError("invalid color: {}".format(color))

    return colors[color] + text + colors["reset"]

# Copyright 2021 iiPython

# Color list
colors = {
    # Normal colors
    "red": "\033[91m",
    "cyan": "\033[36m",
    "blue": "\033[94m",
    "green": "\033[92m",
    "yellow": "\033[93m",

    # Reset character
    "reset": "\033[0m"
}

# Handle colors
def colored(text, color: str = "blue"):
    text = str(text)
    if color not in colors:
        raise ValueError("invalid color: {}".format(color))

    return colors[color] + text + colors["reset"]

# Copyright 2021 iiPython # Color list # Normal colors # Reset character # Handle colors