Metadata-Version: 2.4
Name: hexgraphics
Version: 0.3.0
Summary: aka 0xg
Author: noobiezt0
License-Expression: MIT
Project-URL: Source, https://github.com/noobiezt0/0xg
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# hexgraphics

aka 0xg


## installation

`pip install hexgraphics`


## usage

```python
from hexgraphics.constants import COLORMAP

print(COLORMAP)
```

```python
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')
```
