Draw in terminal
Project description
Termp
Drawing in the terminal
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()
Convert Pictures
- with color
t = termp(140, 140)
t.image("file.jpg", 140, color=True)
- without color
t = termp(140, 140)
t.image("file.jpg", 140)
- color filter picture
t = termp(140, 140)
t.image("file.jpg", 140)
t.givecolor("green")
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.15.tar.gz
(3.7 kB
view details)
File details
Details for the file termp-0.2.15.tar.gz
.
File metadata
- Download URL: termp-0.2.15.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cab9577f341c48459d45277e6995c079a2ba3479b24f1119072166d0eb535f6 |
|
MD5 | 832a3027f7967e13c852b8704b9fb8ed |
|
BLAKE2b-256 | e0b3ae8add0ebcc45a065e56f153c3fb7c45c22d7cde981be7d33630babb7abf |