Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

ControlP5 Slider with integer ticks

$
0
0

Hi guys,

Is there anyway to make the tick amount integers? I have set the slider's min to 0 and max to 599. I then set the number of ticks to be 600. However, whenever it iterates it goes: 0, 1, 2, 3, 4, 5, 5.99, 7, 8, 9.99, 11, 12.000002, 13, instead of just integers. The 5.99 instead of 6 and 9.99 instead of 10 really throws off my animation. Same goes for the 12.0002. Is there anyway to combat this?

Thanks


Viewing all articles
Browse latest Browse all 2896

Trending Articles