Skip to main content

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

pixel_console_image-1.0.4.tar.gz (8.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page