What is the equation for the perfect switch?
Closed this issue · 1 comments
I may be over complicating this, or it's not clear. I'm replacing images left and right, but it's just not coming out smooth in practice. What is the ratio of track image to switch size to overlay size?
I'm having a hard time figuring out how wide my track image is supposed to be. My total switch width is 81. My thumb image width is 32. SO, how wide should my track image be? Mask?
The track image gets centered on the thumb image. There really is no set ratio but I would make your track 2 times your switch width and see how that works. As for mask size that is dependent on your styling. Have you looked at the sample images in the example project (https://github.com/twotoasters/TTSwitch/tree/master/TTSwitch-Example/Images)?