fonttools / skia-pathops

Python bindings for the Skia library's Path Ops
https://skia.org/docs/dev/present/pathops/
BSD 3-Clause "New" or "Revised" License
47 stars 14 forks source link

Add Path.transform method to apply 3x3 matrix #26

Closed anthrotype closed 4 years ago

anthrotype commented 4 years ago

The order of the parameters follows SVG transform affine matrix [a b c d e f], to allow unpacking a 6-tuple as positional args:

path = Path()
...
matrix = (1.5, 0, 0, 1.5, 0, 0)
result = path.transform(*matrix)
anthrotype commented 4 years ago

/cc @rsheeter

anthrotype commented 4 years ago

wow, it took more than 3 hours to complete the build on Appveyor.. OK, we need to pre-build the skia.dll for Windows, put it somewhere on github and download it when we build/test skia-pathops. I started this https://github.com/fonttools/skia-builder

rsheeter commented 4 years ago

LG at a glance, nice.