christianp / aperiodic-monotile

Smith, Myers, Kaplan and Goodman-Strauss's aperiodic monotile, in a variety of formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace the a and b sliders with a single slider

dkeenan7 opened this issue · comments

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.

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

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°.