Answers for "how to clamp a value by modulus"

1

how to clamp a value by modulus

let d=max-min;
let c=((value-min)%d)+min;
Posted by: Guest on September-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language