4/13/2023 0 Comments Printer test page colour![]() ![]() Print(color("This text is red", Colors.red)) # Use this to ensure that ColorIt will be usable by certain command line interfaces ![]() Here are some examples: from colorit import * To use code like this, you can do something like: print(bcolors.WARNING + "Warning: No active frommets remain. ![]() For a simple example, here's some Python code from the Blender build scripts: class bcolors: The most common way to do this is by printing ANSI escape sequences. This somewhat depends on what platform you are on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |