1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-29 19:20:39 +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,10 +1,5 @@
setup() {
this.step = 5;
setSlider(`.slide-control`, v => this.setStep(v));
}
setStep(v) {
this.step = v;
setSlider(`.slide-control`, `steps`, 5);
}
draw() {
@@ -24,7 +19,7 @@ draw() {
var offset = {x:w2, y:h2};
for(let t=0, p, mod; t<=this.step; t+=0.1) {
for(let t=0, p, mod; t<=this.steps; t+=0.1) {
p = {
x: w2 + w4 * cos(t),
y: h2 + h4 * sin(t)