2021-01-31 09:22:15 +01:00
|
|
|
export default function (part) {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { points, Path, paths } = part.shorthand()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
points.rightCp2 = points.rightCp1.flipY()
|
|
|
|
points.bottomCp1 = points.bottomCp2.flipX()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
points.left = points.right.flipX()
|
|
|
|
points.leftCp1 = points.rightCp2.flipX()
|
|
|
|
points.leftCp2 = points.rightCp1.flipX()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
points.top = points.bottom.flipY()
|
|
|
|
points.topCp1 = points.bottomCp2.flipY()
|
|
|
|
points.topCp2 = points.bottomCp1.flipY()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
|
|
|
paths.neck = new Path()
|
|
|
|
.move(points.top)
|
|
|
|
.curve(points.topCp2, points.leftCp1, points.left)
|
|
|
|
.curve(points.leftCp2, points.bottomCp1, points.bottom)
|
|
|
|
.curve(points.bottomCp2, points.rightCp1, points.right)
|
|
|
|
.curve(points.rightCp2, points.topCp1, points.top)
|
2019-08-03 15:03:33 +02:00
|
|
|
.close()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
return part
|
2019-05-30 21:19:06 +02:00
|
|
|
}
|