Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanbindez/color
colors
https://github.com/juanbindez/color
Last synced: 3 days ago
JSON representation
colors
- Host: GitHub
- URL: https://github.com/juanbindez/color
- Owner: JuanBindez
- License: mit
- Created: 2022-02-03T19:18:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T18:50:26.000Z (over 2 years ago)
- Last Synced: 2023-03-05T08:18:34.371Z (over 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```python
class Color():
GREEN = '\033[92m'
LIGTH_GREEN = '\033[1;92m'
RED = '\033[91m'
YELLOW = '\033[93m'
BLUE = '\033[1;34m'
MAGENTA = '\033[1;35m'
BOLD = '\033[;1m'
CYAN = '\033[1;36m'
LIGHT_CYAN = '\033[1;96m'
LIGTH_GREY = '\033[1;37m'
DARK_GREY = '\033[1;90m'
BLACK = '\033[1;30m'
WHITE = '\033[1;97m'
INVERTE = '\033[;7m'
RESET = '\033[0m'
``````python
from color import Colorprint(Color.CYAN +
'''
_ _ _____
_ __ _ _| |_| |__ ___ _ __ |___ /
| '_ \| | | | __| '_ \ / _ \| '_ \ |_ \
| |_) | |_| | |_| | | | (_) | | | |___) |
| .__/ \__, |\__|_| |_|\___/|_| |_|____/
|_| |___/
'''
+ Color.RESET)```
```python
#cores ANSI
class Color():
VERDE = '\033[92m'
VERDE_CLARO = '\033[1;92m'
VERMELHO = '\033[91m'
AMARELO = '\033[93m'
AZUL = '\033[1;34m'
MAGENTA = '\033[1;35m'
NEGRITO = '\033[;1m'
CYANO = '\033[1;36m'
CYANO_CLARO = '\033[1;96m'
CINZA_CLARO = '\033[1;37m'
CINZA_ESCURO = '\033[1;90m'
PRETO = '\033[1;30m'
BRANCO = '\033[1;97m'
INVERTE = '\033[;7m'
RESET = '\033[0m'#print(Color.VERDE_CLARO + "TESTE" + Color.RESET)
```
```python
from color import Color
print(Color.CYANO +
'''
_ _ _____
_ __ _ _| |_| |__ ___ _ __ |___ /
| '_ \| | | | __| '_ \ / _ \| '_ \ |_ \
| |_) | |_| | |_| | | | (_) | | | |___) |
| .__/ \__, |\__|_| |_|\___/|_| |_|____/
|_| |___/
'''
+ Color.RESET)```