Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the a and b sliders with a single slider #6

Open
dkeenan7 opened this issue Jul 26, 2023 · 2 comments
Open

Replace the a and b sliders with a single slider #6

dkeenan7 opened this issue Jul 26, 2023 · 2 comments

Comments

@dkeenan7
Copy link

so we can traverse the continuum more easily. Call the value of the single slider x and have it vary from -1 to +1. Then a = (1+x)/(1-x) and b = 1/a. The detents will be at x = -1, √3-2, 0, 2-√3, 1.

@dkeenan7
Copy link
Author

OK. That was dumb. I think what I was going for was a = 1+x and b = 1-x.

@dkeenan7
Copy link
Author

dkeenan7 commented Jul 30, 2023

OK. Finally figured how to go all the way from chevron - hat - equitortoise - turtle - comet with a single slider while preserving the scale. The slider θ goes from 0 to π/2 (or 0° to 90°) and we have a = sin(θ) and b = cos(θ). This keeps a²+b² constant. Chevron - hat - equitortoise - turtle - comet are 0° - 30° - 45° - 60° - 90°.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant