![]() purple )) print ( background ( "This text has a background that is white", Colors. blue )) print ( background ( "This text has a background that is purple", Colors. green )) print ( background ( "This text has a background that is blue", Colors. yellow )) print ( background ( "This text has a background that is green", Colors. orange )) print ( background ( "This text has a background that is yellow", Colors. red )) print ( background ( "This text has a background that is orange", Colors. white )) # Background print ( background ( "This text has a background that is red", Colors. purple )) print ( color ( "This text is white", Colors. blue )) print ( color ( "This text is purple", Colors. ![]() green )) print ( color ( "This text is blue", Colors. yellow )) print ( color ( "This text is green", Colors. orange )) print ( color ( "This text is yellow", Colors. red )) print ( color ( "This text is orange", Colors. To use ColorIt: from colorit import * # Use this to ensure that ColorIt will be usable by certain command line interfaces init_colorit () # Foreground print ( color ( "This text is red", Colors. Run pip install color-it on Windows, or pip3 install color-it on macOS and Linux, from there it can be imported with import colorit How to use it This means there are 16 million colors that can be used with colorit! Installation Interally, the library creates custom ANSI sequences with RGB values. ColorIt is a super simple way to print color to the console. There comes a time when you realize it is a necessity. Have you ever wanted to print Colors to the console? I certainly have. A simple library to add color to your output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |