Rafs
06/09/2021, 11:13 PMPath
object in compose-desktop whilst pivoting at the center? The only transformation method that exists in the Path
object is translate
which internally converts the path object to a skija path and applies matrix transformation to it by calling Matrix33.makeTranslate
. I tried to use the Matrix33.makeRotate
method in this class but it only accepts an angle in degrees without a pivot.romainguy
06/09/2021, 11:38 PMCanvas
APIs for thisromainguy
06/09/2021, 11:39 PMCanvas.translate()
to the pivot point, Canvas.rotate()
, and Canvas.translate()
back to the original positionRafs
06/10/2021, 8:26 AM