A simple image renderer & editor for the terminal using the .pci filetype
Project description
Pixel Console Image Renderer, Editor & Module
A simple renderer for images in the terminal using the .pci file format
Installation & Usage
Installing Via PyPI
Run this command to install PCI
$ pip install pci
Then to run PCI, run the following in your terminal
$ pci
Installing Via GitHub
$ git clone https://github.com/El1teWatermelonGames/pci.git
$ cd pci
$ python setup.py install
Then to run PCI, run the following in your terminal
$ pci
Usage in code
Rendering an image file
To render an existing image file you have to use the renderImage() function
image.pci
FFF000FFF00FFF
F0F00F000000F0
FFF00F000000F0
F0000F000000F0
F00000FFF00FFF
example.py
from pci.rem import renderImage
renderImage("image.pci")
Rendering image data
This time you reformat the image yourself as a list in python & put it through a seperate function, renderData()
example.py
from pci.rem import renderData
image = [
"FFF000FFF00FFF",
"F0F00F000000F0",
"FFF00F000000F0",
"F0000F000000F0",
"F00000FFF00FFF"
]
renderData(image)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixel_console_image-1.0.2.tar.gz.
File metadata
- Download URL: pixel_console_image-1.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eee2271d65b65a02722216498bc012e7ecda261fa8572d661287433a0eb05a5
|
|
| MD5 |
f7f5ceb973f3ef411f6a94f19d12012e
|
|
| BLAKE2b-256 |
788e04f71bcd1e95d62513116d9cef80db1b111053c54e822cc8e5d43765d55d
|
File details
Details for the file pixel_console_image-1.0.2-py3.11.egg.
File metadata
- Download URL: pixel_console_image-1.0.2-py3.11.egg
- Upload date:
- Size: 16.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9575e8a450f140a69f95d37ecbb94dc4a154055138888356931a5dd16ec96bfb
|
|
| MD5 |
065111dcbca0bba8697c0b65ce9c1197
|
|
| BLAKE2b-256 |
4128a38dcbf05187d78344e476d14a3a17e67453cc666375095f963b814b0be4
|