mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-31 20:11:59 +02:00
yforx
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user