mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-26 09:44:32 +02:00
bugfix: mismatch formula
the 'second term' interpolation percentages indicator doesn't take the path of 'second term ' curve path.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user