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

Fixed a few TickMark issues in relation to drawing #118

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

Conversation

ubidefeo
Copy link

Hope you'll want to merge these ones in.
TickMarks were acting weird (not drawing to the end of the slider) so I rewrote that part to make for better drawing and spacing.
The float x for offset never really had a float value and the .translate() was causing the offset to never make it to the end of the slider. Wit an extra layer of push/pop Matrix I was able to redraw them entirely at a computed offset :)
I also fixed an issue with setBounds (commented out).

…ems not to exist in Processing 3 anymore

- added TickMark distance from component and fixed its relation to TickMark length
- implemented TickMark.setDistance(int) method to allow better positioning in respect to the slider
- cleaned up after myself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants