1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 16:23:12 +02:00

image regeneration

This commit is contained in:
Pomax
2020-09-06 09:18:11 -07:00
parent 1de1fc9ce3
commit 17c50a403b
48 changed files with 97 additions and 15074 deletions

View File

@@ -39,12 +39,12 @@ draw() {
updateCurve(a) {
let angle = -a;
let b = ( cos(angle) - 1 ) / sin(angle);
let b = (cos(angle) - 1 ) / sin(angle);
// new control point
curve.points[1] = {
x: w/2 + r * ( cos(angle) - b * sin(angle) ),
y: w/2 + r * ( sin(angle) + b * cos(angle) )
x: w/2 + r * (cos(angle) - b * sin(angle) ),
y: w/2 + r * (sin(angle) + b * cos(angle) )
};
// new endpoint