Draw in terminal
Project description
Termp
Drawing in the terminal
Installation:
pip install --upgrade termp
Import:
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()
Convert pictures:
- with color
t = termp(140, 140)
t.image("file.jpg", 139, color=True)
- without color
t = termp(140, 140)
t.image("file.jpg", 139)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
termp-0.2.2.tar.gz
(3.2 kB
view hashes)