Draw a pixel map with braille characters
Project description
Pixler
A library to draw pixles with unicode braille characters
Example
In [1]: from pixler import Pixler
In [2]: planet_pixel_map = [
...: [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0],
...: [0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0],
...: [0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0],
...: [0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0],
...: [0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
...: [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
...: [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
...: [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
...: [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
...: [1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0],
...: [0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
...: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
...: ]
...:
...: pixler = Pixler.from_pixels(planet_pixel_map)
In [3]: print(pixler.get_frame())
⠀⢠⠒⣉⠕⢲⢉⠆
⢀⢗⠉⠀⠀⢀⠇⠀
⠣⠬⠒⠤⠔⠊⠀⠀
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
pixler-0.1.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
pixler-0.1.1-py3-none-any.whl
(2.0 kB
view hashes)