mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-31 03:59:58 +02:00
yforx
This commit is contained in:
@@ -10,12 +10,7 @@ setup() {
|
||||
];
|
||||
|
||||
this.s = this.f.map(f => plot(f) );
|
||||
this.position = 0;
|
||||
setSlider(`.slide-control`, v => this.setPosition(v))
|
||||
}
|
||||
|
||||
setPosition(v) {
|
||||
this.position = v;
|
||||
setSlider(`.slide-control`, `position`, 0);
|
||||
}
|
||||
|
||||
draw() {
|
||||
|
@@ -2,12 +2,7 @@ setup() {
|
||||
this.degree = 15;
|
||||
this.triangle = [[1], [1,1]];
|
||||
this.generate();
|
||||
this.position = 0;
|
||||
setSlider(`.slide-control`, v => this.setPosition(v))
|
||||
}
|
||||
|
||||
setPosition(v) {
|
||||
this.position = v;
|
||||
setSlider(`.slide-control`, `position`, 0)
|
||||
}
|
||||
|
||||
binomial(n,k) {
|
||||
|
@@ -9,13 +9,9 @@ setup() {
|
||||
];
|
||||
|
||||
this.s = this.f.map(f => plot(f) );
|
||||
this.position = 0;
|
||||
setSlider(`.slide-control`, v => this.setPosition(v))
|
||||
setSlider(`.slide-control`, `position`, 0);
|
||||
}
|
||||
|
||||
setPosition(v) {
|
||||
this.position = v;
|
||||
}
|
||||
|
||||
draw() {
|
||||
resetTransform();
|
||||
|
Reference in New Issue
Block a user