1
0
Fork 0
freesewing/markdown/dev/howtos/code/adding-points/en.md
2022-02-20 14:35:50 +01:00

21 lines
478 B
Markdown

---
title: Adding points
for: developers
about: Shows you how to add points to your pattern
---
After using the [shorthand](/howtos/code/shorthand/) call,
`Point` contains the point constructor, while `points` is a reference to `part.points`,
which is where you should store your points.
Things will now _just work_ when you do this:
```js
points.centerBack = new Point(0,0);
```
<Tip>
The [Point API docs](/reference/api/point/) list many ways to create a point.
</Tip>