1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 20:11:59 +02:00
This commit is contained in:
Pomax
2020-08-23 13:33:00 -07:00
parent c6d91e2c41
commit 9349103b48
60 changed files with 5561 additions and 23694 deletions

View File

@@ -1,12 +1,7 @@
setup() {
this.steps = 8;
this.curve = Bezier.defaultCubic(this);
setMovable(this.curve.points);
setSlider(`.slide-control`, v => this.setStep(v));
}
setStep(v) {
this.steps = v;
setSlider(`.slide-control`, `steps`, 8);
}
draw() {

View File

@@ -1,12 +1,7 @@
setup() {
this.steps = 4;
this.curve = Bezier.defaultQuadratic(this);
setMovable(this.curve.points);
setSlider(`.slide-control`, v => this.setStep(v));
}
setStep(v) {
this.steps = v;
setSlider(`.slide-control`, `steps`, 4);
}
draw() {