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.1.tar.gz
(2.7 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.1.tar.gz.
File metadata
- Download URL: hexgraphics-0.3.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccac25c3ce563502d9b5c7b6c0fc2baccbbbe6e7030150c43185273f9e8aa3ee
|
|
| MD5 |
c88cf19b537d77c1c47b7e9e42f210a0
|
|
| BLAKE2b-256 |
e88442b419686582afbb6182ea37e91dce1a3fbbfd9f23be89b6095ce0b60dd5
|
File details
Details for the file hexgraphics-0.3.1-py3-none-any.whl.
File metadata
- Download URL: hexgraphics-0.3.1-py3-none-any.whl
- Upload date:
- Size: 3.3 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 |
6d119c98796ed504bddacd3edf8056d7e8a8a0b5a1b684150f61ce939bf4ba53
|
|
| MD5 |
7889dcdb12ec330b19def8596a8868f9
|
|
| BLAKE2b-256 |
8e980c129ad5d19ad9d9bb77816ec557276edecccf6f9629b4d28b6474ca116e
|