I create a pathitem and went to mirror base on coordinate.
by the way, how to close the open path ?
var mypath = activeLayer.pathItems.add()
mypath.setEntirePath([[0, 0],[100,0],[100, 100]); <---here, how to close this triangle
I went to mirror the mypath base on [200,0]
now i spelt two step --
first - mirror use Matrix(-100,100) or Matrix(100,-100)
sceond - move use translate()
of course, i can create a function
but i think have a bulit-in method to arrival this goal
anybody to instruct, thx~~
use this to close the path
mypath.closed = true;
to resize around a custom point you need 2 steps, what you're doing is correct, there's no built-in function. Look at this post