Dovyski / cvui

A (very) simple UI lib built on top of OpenCV drawing primitives
https://dovyski.github.io/cvui/
MIT License
832 stars 213 forks source link

I edit counter to limited counter #68

Closed yeseuleee closed 5 years ago

yeseuleee commented 5 years ago

I use cvui library you created very useful and well. This makes my gui work much easier. I used the counter function for the first time today. My program needed a function to prevent users who use counters from setting more than a limited value. So I modified the counter function to allow only a limited range of values ​. I just added the min and max arguments to the existing counter function. If the theStep argument was computed with theValue, the operation was not performed if it was smaller than min or smaller than max. Thank you!

yeseuleee commented 5 years ago

I will add edited example file