You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement my own ColorAdapter, and I found that sometimes the arc is incomplete. I'm guessing this is because in the implementation of LobsterPicker.getAngle(int position)segmentWidth is calculated using integer division:
intsegmentWidth = 360 / nbOfSegments;
So when my adapter has 16 colors, 360 / 16 = 22.5 is treated as 22.
When I reduce the number of colors to 15 (360 / 15 = 24), the arc is complete.
I'm trying to implement my own ColorAdapter, and I found that sometimes the arc is incomplete. I'm guessing this is because in the implementation of
LobsterPicker.getAngle(int position)
segmentWidth
is calculated using integer division:So when my adapter has 16 colors, 360 / 16 = 22.5 is treated as 22.
When I reduce the number of colors to 15 (360 / 15 = 24), the arc is complete.
See a screenshot here.
Thanks for the great library!
The text was updated successfully, but these errors were encountered: