User Tools

Site Tools


usages:binpack
Usage: binpack width height
Reads lines with "id w h" from stdin. Prints packing on stdout. eg
127 13:11 achar:~/ $ echo -e '0x01 500 300\n0x02 300 300\n0x03 300 400' | binpack 960 516
binpack.py: 960 516
binpack.py: 0x01 500 300
binpack.py: 0x02 300 300
binpack.py: 0x03 300 400
Layer 0: 0x01 0 0
binpack.py: Layer 0: 0x01 0 0 500 300
Layer 0: 0x02 500 0
binpack.py: Layer 0: 0x02 500 0 300 300
Layer 1: 0x03 0 0
binpack.py: Layer 1: 0x03 0 0 300 400
usages/binpack.txt · Last modified: 2019/07/09 09:57 (external edit)