1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 11:44:22 +02:00

misplaced point for control-diagram-2

This commit is contained in:
Pomax
2016-06-10 11:26:12 -07:00
parent 1eec0672c0
commit 5e40a7ebbd
3 changed files with 2 additions and 322 deletions

View File

@@ -96,7 +96,7 @@ var Control = React.createClass({
this.drawLerpBox(api, dim, pad, p);
var t = (p.x-pad)/fwh;
this.drawLerpPoint(api, (1-t)*(1-t)*(1-t), pad, fwh, p);
this.drawLerpPoint(api, 2*(1-t)*(1-t)*(t), pad, fwh, p);
this.drawLerpPoint(api, 3*(1-t)*(1-t)*(t), pad, fwh, p);
this.drawLerpPoint(api, 3*(1-t)*(t)*(t), pad, fwh, p);
this.drawLerpPoint(api, (t)*(t)*(t), pad, fwh, p);
}