I think it's a more complex that just setting the origin to 0.5. This will do the trick for (2n+)1px stroke but will fail (=will be of no practical use) for (2n+)0px border.
I think it's a more complex that just setting the origin to 0.5.
This will do the trick for (2n+)1px stroke but will fail (=will be of no practical use) for (2n+)0px border.