lordmauve / wasabi2d

Cutting-edge 2D game framework for Python
https://wasabi2d.readthedocs.io/
GNU Lesser General Public License v3.0
154 stars 24 forks source link

Allow setting matrix directly #44

Open lordmauve opened 4 years ago

lordmauve commented 4 years ago

In order to support loading objects from SVG the ability to read/set the transformation matrix (at least the 3x2 upper part) of a Transformable could be exposed.

The matrix can be decomposed to a position, scale and rotation although Transformables cannot currently represent shear.