ref: 5cf932b7a032a685aca7512336a70b608e605c9e
dir: /README.md/
# atlas Creates an atlas texture out of smaller images, dumps it to stdout as a Plan 9 image and write the mapping between filenames of images and their positions and dimensions to a file. Dumping the resulting image file as two headers to be included in a C program can be done by using provided `atlasc` script (it needs [hx](https://github.com/ftrvxmtrx/hx) to be installed): ``` atlasc -b 0x000000ff -c grey8 *.png >atlas_priv.h >[2]atlas.h ``` ## Installing ``` cd /tmp && \ hget https://github.com/ftrvxmtrx/hx/archive/master.tar.gz | tar xz && \ cd hx-master && mk install && cd .. && \ hget https://github.com/ftrvxmtrx/atlas/archive/master.tar.gz | tar xz && \ cd atlas-master && mk install && cd .. && rm -rf hx-master atlas-master ``` ## TODO Sub-atlases?