ref: 9273e8bdb036058c8deba9c0495f2aab765fd835
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?