Merge pull request #3349 from BenJamesBen/stretchtoscale-doc-update
fix(docs): Update utils.stretchToScale()
This commit is contained in:
commit
8d0f17bec9
1 changed files with 6 additions and 2 deletions
|
@ -15,9 +15,13 @@ float utils.stretchToScale(float stretch)
|
||||||
|
|
||||||
The way people measure stretch intuitively is different from the way we handle stretch in code.
|
The way people measure stretch intuitively is different from the way we handle stretch in code.
|
||||||
|
|
||||||
When people say _25% stretch_ they mean that 10 cm fabric gets stretched to 12.5 cm fabric.
|
When people say fabric has _25% stretch_ they mean that 10 cm of fabric can
|
||||||
In code and on our patterns, that means we need to scale things by 80%.
|
stretch to 12.5 cm.
|
||||||
|
In code that means we would need to scale non-stretch lengths by 80%
|
||||||
|
to get the correct lengths to use in patterns with 25% stretch fabric.
|
||||||
|
|
||||||
|
Pattern designers need a way to calculate the scaling factor to use for
|
||||||
|
their pattern part lengths, given a fabric stretch percentage.
|
||||||
This function does that by returning:
|
This function does that by returning:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue