Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to clamp a value

let d=max-min;
let c=((value-min)%d)+min;
 
PREVIOUS NEXT
Tagged: #clamp
ADD COMMENT
Topic
Name
9+9 =