숫자의 범위를 제한한다.
constrain(num, a, b)
num이 a보다 작을때 : a
num이 b보다 클때 : b
num이 a와 b 사이 : num
sensVal = constrain(sensVal, 10, 150); // 변수의 범위가 10~150으로 제한된다 |
Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software