let curve; setup() { const type = this.parameters.type ?? `quadratic`; curve = (type === `quadratic`) ? Bezier.defaultQuadratic(this) : Bezier.defaultCubic(this); setMovable(curve.points); } draw() { clear(); // let's draw the curve from -10 to 10, instead of 0 to 1 setStroke(`skyblue`); let min=-10, max=10, step=0.05; // calculate the very first point let pt = curve.get(min - step), pn; // then draw the section from -10 to 0 for (let t=min; t