On Sat, 2006-03-11 at 10:11 -0800, Douglas Straub wrote:
Hi, I'm a bit confused over how skew is supposed to function. When I perform a horizontal skew of 20px on a 100x100px rectangle, I get a bounding box of 120x100px, with the top shifted right 10px, and the bottom shifted left 10px.
But when I perform a horizontal skew of 20px on a 100x64px rectangle, I get a bounding box of 112.8x64px.
12.8 = 6.4.x2?
Why does the height affect the amount of horiz skew when horizontal skew amount is specified? Any suggestions?
See (scroll down to skew section):
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch06s02.html#Transforms-Transfo...
The skew is calculated assuming a square bounding box, using the longest side to calculate the box. So you take the longest side (100 px) and apply a 20 px skew. This skew is equivalent to a 20% skew. A 20% skew applied to 64 px gives a change in the horizontal bounding box of 12.8 px as you found. This is confusing!
Tav