Skip to content

hugecatdev/Termp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Termp

Drawing in the terminal

pypi

Install

pip install --upgrade termp

Usage

from Termp import *

Create a text picture:

t = termp(50,50)
# Create a 50 × 50 text image

Draw:

t.line(0,0,49,49)
t.circle(25,25,10)
t.rect(0,0,49,49)
t.fill(30,5, "#")
t.fill(20,30, "#")

Result:

t.print()

image

Convert Pictures

  • with color
t = termp(140, 140)
t.image("file.jpg", 140, color=True)

image

  • without color
t = termp(140, 140)
t.image("file.jpg", 140)

image

  • color filter picture
t = termp(140, 140)
t.image("file.jpg", 140)
t.givecolor("green")

image

About

Drawing in the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages