mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 14:02:50 -05:00
Change .1 to .5 since we figured out that it doesnt matter and .5 seems less arbitrary
This commit is contained in:
parent
db5ddcbe87
commit
801fc926a0
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ class ModeTools extends React.Component {
|
||||||
// Direction is average of normal at the point and direction to prev point, using the
|
// Direction is average of normal at the point and direction to prev point, using the
|
||||||
// normal that points out from the convex side
|
// normal that points out from the convex side
|
||||||
// Lenth is curve length * HANDLE_RATIO
|
// Lenth is curve length * HANDLE_RATIO
|
||||||
const convexity = prev.getCurve().getCurvatureAtTime(.1) < 0 ? -1 : 1;
|
const convexity = prev.getCurve().getCurvatureAtTime(.5) < 0 ? -1 : 1;
|
||||||
point.handleIn = (prev.getCurve().getNormalAtTime(1)
|
point.handleIn = (prev.getCurve().getNormalAtTime(1)
|
||||||
.multiply(convexity)
|
.multiply(convexity)
|
||||||
.add(prev.point.subtract(point.point).normalize()))
|
.add(prev.point.subtract(point.point).normalize()))
|
||||||
|
@ -96,7 +96,7 @@ class ModeTools extends React.Component {
|
||||||
// Direction is average of normal at the point and direction to prev point, using the
|
// Direction is average of normal at the point and direction to prev point, using the
|
||||||
// normal that points out from the convex side
|
// normal that points out from the convex side
|
||||||
// Lenth is curve length * HANDLE_RATIO
|
// Lenth is curve length * HANDLE_RATIO
|
||||||
const convexity = point.getCurve().getCurvatureAtTime(.1) < 0 ? -1 : 1;
|
const convexity = point.getCurve().getCurvatureAtTime(.5) < 0 ? -1 : 1;
|
||||||
point.handleOut = (point.getCurve().getNormalAtTime(0)
|
point.handleOut = (point.getCurve().getNormalAtTime(0)
|
||||||
.multiply(convexity)
|
.multiply(convexity)
|
||||||
.add(next.point.subtract(point.point).normalize()))
|
.add(next.point.subtract(point.point).normalize()))
|
||||||
|
|
Loading…
Reference in a new issue