Answers for "how to python color"

1

change color in python

from colorama import *
# install with "pip install coloroma"
init(convert=True)

print(Fore.RED + 'Hello World!')
Posted by: Guest on April-13-2021
3

python colors code

print("33[0;37;40m Normal textn")
print("33[2;37;40m Underlined text33[0;37;40m n")
print("33[1;37;40m Bright Colour33[0;37;40m n")
print("33[3;37;40m Negative Colour33[0;37;40m n")
print("33[5;37;40m Negative Colour33[0;37;40mn")
 
print("33[1;37;40m 33[2;37:40m TextColour BlackBackground          TextColour GreyBackground                WhiteText ColouredBackground33[0;37;40mn")
print("33[1;30;40m Dark Gray      33[0m 1;30;40m            33[0;30;47m Black      33[0m 0;30;47m               33[0;37;41m Black      33[0m 0;37;41m")
print("33[1;31;40m Bright Red     33[0m 1;31;40m            33[0;31;47m Red        33[0m 0;31;47m               33[0;37;42m Black      33[0m 0;37;42m")
print("33[1;32;40m Bright Green   33[0m 1;32;40m            33[0;32;47m Green      33[0m 0;32;47m               33[0;37;43m Black      33[0m 0;37;43m")
print("33[1;33;40m Yellow         33[0m 1;33;40m            33[0;33;47m Brown      33[0m 0;33;47m               33[0;37;44m Black      33[0m 0;37;44m")
print("33[1;34;40m Bright Blue    33[0m 1;34;40m            33[0;34;47m Blue       33[0m 0;34;47m               33[0;37;45m Black      33[0m 0;37;45m")
print("33[1;35;40m Bright Magenta 33[0m 1;35;40m            33[0;35;47m Magenta    33[0m 0;35;47m               33[0;37;46m Black      33[0m 0;37;46m")
print("33[1;36;40m Bright Cyan    33[0m 1;36;40m            33[0;36;47m Cyan       33[0m 0;36;47m               33[0;37;47m Black      33[0m 0;37;47m")
print("33[1;37;40m White          33[0m 1;37;40m            33[0;37;40m Light Grey 33[0m 0;37;40m               33[0;37;48m Black      33[0m 0;37;48m")
 
n")
Posted by: Guest on December-17-2020

Code answers related to "how to python color"

Python Answers by Framework

Browse Popular Code Answers by Language