Skip to content

chanchan69/truecolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

truecolor

A better console color library for python

GitHub

PyPI

Print Colored Text

from truecolor import fg, reset
from os import system

system('cls')
print(f"{fg('magenta')}This {fg((255, 0, 0))}is{fg('magenta')} magenta text!{fg('#ff8243')} This is the exact hex color #ff8243 :){reset}")

Output

alt text

Another Way

from truecolor import colors, reset
from os import system

system('cls')
print(f"{colors.magenta}This {colors.red)}is{colors.magenta} magenta text!{reset}")

About

A better console color library for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages