✨ Added tutorial pattern
This commit is contained in:
parent
a1e9badc2c
commit
7d9e41ec6f
28 changed files with 11984 additions and 0 deletions
15
packages/tutorial/src/step2.js
Normal file
15
packages/tutorial/src/step2.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
export default function(part) {
|
||||
let { Point, points, Path, paths, measurements, options } = part.shorthand();
|
||||
|
||||
points.right = new Point(measurements.headCircumference / 10, 0);
|
||||
points.bottom = new Point(0, measurements.headCircumference / 12);
|
||||
|
||||
points.rightCp1 = points.right.shift(90, points.bottom.dy(points.right) / 2);
|
||||
points.bottomCp2 = points.bottom.shift(0, points.bottom.dx(points.right) / 2);
|
||||
|
||||
paths.neck = new Path()
|
||||
.move(points.right)
|
||||
.curve(points.rightCp1, points.bottomCp2, points.bottom);
|
||||
|
||||
return part;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue