Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
small python color class
# voidnill ~ hackerbit
# united colors of python
class colors:
# regular colors
BLACKBERRIES = '\033[30m'
CAULIFLOWER = '\033[38m'
BEETROOT = '\033[91m'
AVOCADO = '\033[92m'
BANANA = '\033[93m'
BLUEBERRIES = '\033[94m'
EGGPLANT = '\033[95m'
# on background
ON_BLACKBERRIES = '\033[48;5;8m'
ON_CAULIFLOWER = '\033[48;5;15m'
ON_BEETROOT = '\033[48;5;9m'
ON_AVOCADO = '\033[48;5;10m'
ON_BANANA = '\033[48;5;11m'
ON_BLUEBERRIES = '\033[48;5;12m'
ON_EGGPLANT = '\033[48;5;13m'
# styles
RESET = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment