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

Added the ability to put "real" labels on the dials. #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wfdudley
Copy link
Owner

@wfdudley wfdudley commented May 8, 2021

Red 'X' labels OR "real" labels are now an option.
Labels can be generated algorithmically or by loading the array "manually".
There is also an option to rotate the labels or print them all "level".

wfdudley added 4 commits May 7, 2021 20:16
Red 'X' labels OR "real" labels are now an option.
Labels can be generated algorithmically or by loading the array "manually".
There is also an option to rotate the labels or print them all "level".
Compute fudge factors that shift the labels to the left so they're aligned better with the tick marks.
Labels on the left need to be shifted further than labels that are closer to the right of the dial.
fix the label positions to move the left side labels a bit to the left to center them on the tick marks.
The labels on the right side need less correction; the rightmost one needs no correction at all.
This feature allows the program to generate multiple dials on the same sheet.
This is useful in creating a front panel with multiple knobs on it, that each need a labeled dial.
Just re-define mechangle, xoffset, yoffset, and then draw a new dial in a new position.
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

Successfully merging this pull request may close these issues.

1 participant