Here is an experimental version of SwRotary.js, a "push button" rotary switch.
The TicTac version (Up Down counter) is working, as default mode.
The mode selection is not set up yet.
The Cycled version did not work. Needs a little more work.
Should cycle from pole 5 to pole 1.
Reverse Cycle could be another mode?
Button mode removed as not appropriate. Mouse up code not modified.
The "wire " is not changing colors.
Demo nod program attached as well.
Some of the code for the different beziers is still present, but commented out.
It was used to figure out which values to use for the different beziers, for proper alignment with poles.
- Brian
Have not tried any "Fork" versions.
See post 19 for "Final" working version.
|