1
0
Fork 0

Added tutorial pattern

This commit is contained in:
Joost De Cock 2019-05-30 21:19:06 +02:00
parent a1e9badc2c
commit 7d9e41ec6f
28 changed files with 11984 additions and 0 deletions

View file

@ -0,0 +1,34 @@
export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand();
points.rightCp2 = points.rightCp1.flipY();
points.bottomCp1 = points.bottomCp2.flipX();
points.left = points.right.flipX();
points.leftCp1 = points.rightCp2.flipX();
points.leftCp2 = points.rightCp1.flipX();
points.top = points.bottom.flipY();
points.topCp1 = points.bottomCp2.flipY();
points.topCp2 = points.bottomCp1.flipY();
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)
.close();
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}