aka 0xg
Project description
hexgraphics
aka 0xg
installation
pip install hexgraphics
usage
from hexgraphics.constants import COLORMAP
print(COLORMAP)
from hexgraphics import Image0xg
# 5x4 image
example = bytes([
5, 4, # size
0xe, 0xe, 0xe, 0xe, 0xa,
0xe, 0xb, 0xe, 0xa, 0xa,
0xe, 0xe, 0xe, 0xe, 0x1,
0xa, 0xa, 0xa, 0xa, 0xa,
])
image = Image0xg(example)
# convert to .png
image.convert().save('image.png')
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
hexgraphics-0.3.2.tar.gz
(2.8 kB
view details)
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 hexgraphics-0.3.2.tar.gz.
File metadata
- Download URL: hexgraphics-0.3.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
036776b68592820c3b1389e892bf4dde43f4cf4540f6f40857af3b2a926dc43e
|
|
| MD5 |
6f8b7ad605b34b2af82dfc24457510cf
|
|
| BLAKE2b-256 |
50c05b42e9952b8b78d26a64547c29e24417fe7e9859dcb35baa6be9948969a3
|
File details
Details for the file hexgraphics-0.3.2-py3-none-any.whl.
File metadata
- Download URL: hexgraphics-0.3.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abecb7f9c398616baa1c24cd810568bb5fa96608f3832c952c811e5969f40bfe
|
|
| MD5 |
d3eaaf803236d0e8211bdc2da9b00434
|
|
| BLAKE2b-256 |
51849585944ddf8878f3b65ea94d1883d49414d744443b31a06f8884f15c247a
|