twolfson/spritesmith

Coordinates origin change

Novack opened this issue · 2 comments

Hello, we have been looking without luck into how to move the coordinates origin.

Currently, the (0,0) is at the top-left. In our current case we need it at the bottom-left, increasing towards top and right.
Are there any run or export options for his?

Thanks in advance.

I'm assuming you're using the default binary-tree layout. The easiest way to perform that would be offsetting the result from that algorithm. This can be done by:

Thank you @twolfson, much appreciated.

@jpsala have a look at this if you can.