Skip to main content

aka 0xg

Project description

hexgraphics

aka 0xg

installation

pip install hexgraphics

usage

from hexgraphics.constants import COLORMAP

print(COLORMAP)
from hexgraphics import Image0xg

example = bytes([
    0x0e, 0x0e, 0x0e, 0x0e, 0x0a, 0x10,
    0x0e, 0x0b, 0x0e, 0x0a, 0x0a, 0x10,
    0x0e, 0x0e, 0x0e, 0x0e, 0x01, 0x10,
    0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
])

Image0xg(example).save('example.0xg')

with open('example.0xg', 'rb') as f:
    Image0xg(f).convert('example.png')

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

hexgraphics-0.2.51.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexgraphics-0.2.51-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file hexgraphics-0.2.51.tar.gz.

File metadata

  • Download URL: hexgraphics-0.2.51.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hexgraphics-0.2.51.tar.gz
Algorithm Hash digest
SHA256 0d0e5267d068d73fa6c72d7cf5c13ffd4c0aef1f9e99a41020b624af64cd8493
MD5 0aa3b95f8de453fa26d10d3af51f7b90
BLAKE2b-256 5bb0ddac374b19ebe54a7b21d2a9e4980f5f8f690e06e6ac30378cb934de97d7

See more details on using hashes here.

File details

Details for the file hexgraphics-0.2.51-py3-none-any.whl.

File metadata

  • Download URL: hexgraphics-0.2.51-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hexgraphics-0.2.51-py3-none-any.whl
Algorithm Hash digest
SHA256 e692f5a2a0e1337d1df15b900c5ec477790fe1da8a741c1936900a97c4d94c03
MD5 12d56d08888ee59342793f590f0dc820
BLAKE2b-256 8d93c289bbcacbb934de930499c7a5e2f461b71b83905e554ec10ef911ff4c9c

See more details on using hashes here.

Supported by

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