sojamo / controlp5

A gui library for processing.org
GNU Lesser General Public License v2.1
490 stars 142 forks source link

Fixed a few TickMark issues in relation to drawing #118

Open ubidefeo opened 6 years ago

ubidefeo commented 6 years ago

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