Sketch --Transform

Sure!
transform will take a sketch layer and perform transformations on each x and y coordinate of the sketchLayer assigned.

You’ll need to create two functions to transform both the x and y coordinates of the sketch layer.

fnx = simpleFunction("x+5","x","y") moves the entire sketch 5 to the right
fny = simpleFunction("y","x","y") preserves all of the y coordinates in the sketch

They work just like transformations in coordinate geometry work. In this case sketch.transform(fnx,fny)

Or you can do it all in one line without the fnx, fny functions. Its just easier to share it that way!

2 Likes