-
Notifications
You must be signed in to change notification settings - Fork 0
color
Spice up your script's output with some color! Implements both the basic ANSI-16 color scheme, and rgb
Contains the code for coloring text elements.
- BLACK
- RED
- GREEN
- YELLOW
- BLUE
- MAGENTA
- CYAN
- WHITE
The brighter alternatives to each color is accessed through the bright attribute on each color. i.e. fg.WHITE.bright
Used to create any text color in the full RGB specturm. Each paramater's values range from [0, 255]
Used to create a color using a hex code instead of the RGB values. Can be passed the hex code as a string ('#fff', '#333') or as a number using Python's hex shorthand (0xfff, 0x333)
Contains the code for coloring the background of elements.
- BLACK
- RED
- GREEN
- YELLOW
- BLUE
- MAGENTA
- CYAN
- WHITE
The brighter alternatives to each color is accessed through the bright attribute on each color. i.e. bg.WHITE.bright
Used to create any background color in the full RGB specturm. Each paramater's values range from [0, 255]
Used to create a color using a hex code instead of the RGB values. Can be passed the hex code as a string ('#fff', '#333') or as a number using Python's hex shorthand (0xfff, 0x333)
Other visual effects that can be applied to text output
- CLEAR
- BOLD
- ITALIC
- UNDERLINE
- STRIKETHROUGH