Skip to content

thatn00b123/Python-Easy-Colored-Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python-Easy-Colored-Text

A Python (3.X) module for easily creating colored text without Colorama (another Python module)

Variables:

  • None

Functions:

  • colortext(txtstyle:int, txtcolor: int, backcolor: int, text: str):
    Arguments:

    • txtstyle: integer from 0 - 5.
      • 0: none
      • 1: bold
      • 2: light
      • 3: italicised
      • 4: underlined
      • 5: blink
    • txtcolor: integer from 30 - 37. (list here)
    • backcolor integer from 40 - 47 (list also here)
    • txt: string that will be colored and returned
  • ansicolortext(backcolor: int, *txtcolors: list):
    RUN $ echo $TERM IF YOU ARE ON LINUX OR A LINUX BASED OS!
    Arguments:

    • backcolor: integer. (list of color codes here)
    • txtcolors: n number of lists that are 2 indexes long. Index 0 is the string of text, and index 1 is the color code (found above)

About

A Python (3.X) module for easily creating colored text without Colorama (another Python module)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages