1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 03:59:58 +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

@@ -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() {

View File

@@ -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) {

View File

@@ -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();