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.0.tar.gz
(2.6 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.0.tar.gz.
File metadata
- Download URL: hexgraphics-0.3.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d8b98d1fea7d91d3e44e40589a35ccffdfed6298b1a63ba906e9a0a992def37
|
|
| MD5 |
a62384c187f7d7c437914217b923a595
|
|
| BLAKE2b-256 |
e5b5f2a509959109a53f7959bc729cb7f962ba84ede28be4140efae28a007ae4
|
File details
Details for the file hexgraphics-0.3.0-py3-none-any.whl.
File metadata
- Download URL: hexgraphics-0.3.0-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 |
07d85f13363374a7ca4f7cc09afb6d5e6ab7f4d5ebb1df93a131e5b197cc10ba
|
|
| MD5 |
467761926ac20db26d1442bdc3f61bfc
|
|
| BLAKE2b-256 |
b176ce8afdc4f5f793279882806b47f2f56d14d58855b4971aa8ae40855c420b
|