Matrix transforms based on an arbitrary registration point
Posted by: Keith H in ActionScript 3, Flash 9, tags: Arbitrary, Matrix, Registration Point, Skew, TransformI was wanting a lightweight function to resize, rotate, and skew DisplayObjects based on a dynamic registration point so I made a function to apply my desired matrix settings.
One thing that bothers me is that I could not figure out how to skew along the X and Y axis at the same time. When I do set "c" and "b" Matrix properties, one of the skewed axis does not skew parallel like it should. And if I concatenate separate skew Matrices, the last concatenated skew Matrix transforms correctly but not the one before it. I'm trying to avoid using nested DisplayObjects to perform the separate X and Y skews, but that looks like an option I will have to use.
Read the rest of this entry »
Entries (RSS)