1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-03 05:12:43 +02:00

catmull rom

This commit is contained in:
Pomax
2020-09-03 20:08:21 -07:00
parent bb5adcaebd
commit d2992ebd15
31 changed files with 417 additions and 353 deletions

View File

@@ -191,7 +191,7 @@ drawResult() {
if (this.molded) last = this.molded;
last.drawSkeleton(`lightblue`);
last.drawCurve(this.parameters.interpolated ? `lightblue` : `black`);
last.drawCurve(this.cursor.down ? `lightblue` : `black`);
last.points.forEach(p => circle(p.x, p.y, 2));
if (this.mark) {
@@ -253,10 +253,10 @@ onMouseMove() {
onMouseUp() {
this.mark = false;
if (this.molded) {
curve = this.interpolated ?? this.molded;
curve = this.interpolated || this.molded;
resetMovable(curve.points, [this.position]);
this.interpolated = false;
this.molded = false;
resetMovable(curve.points, [this.position]);
}
redraw();
}