rezaali/ofxUI

Make a slider "snap" or obey an arbitrary increment?

Opened this issue · 1 comments

Is it possible to make a slider snap to a specified amount?

For example, have a float slider that goes from 1 to 1.5 in increments of 0.1. So the possible values would only be 1.0, 1.1, 1.2, 1.3, 1.4, and 1.5.

Cheers

I would use getValue(), multiply, round and setValue(). BTW, why are some many coding question posted as "issues" here on github? The oF forum on the other hand seems kinda deserted. Just wondering…