1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 20:11:59 +02:00

code fix and build update

This commit is contained in:
Pomax
2016-03-20 10:15:52 -07:00
parent 7de57a8333
commit 3583bf313a
175 changed files with 376 additions and 23201 deletions

View File

@@ -41,7 +41,7 @@ var Extremities = React.createClass({
var xcurve = new api.Bezier(x_pts);
api.drawCurve(xcurve, offset);
api.setColor("red");
xcurve.inflections().y.forEach(t => {
xcurve.extrema().y.forEach(t => {
var p = xcurve.get(t);
api.drawCircle(p, 3, offset);
});
@@ -55,7 +55,7 @@ var Extremities = React.createClass({
var ycurve = new api.Bezier(y_pts);
api.drawCurve(ycurve, offset);
api.setColor("red");
ycurve.inflections().y.forEach(t => {
ycurve.extrema().y.forEach(t => {
var p = ycurve.get(t);
api.drawCircle(p, 3, offset);
});