DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to clamp a value by modulus
let d=max-min; let c=((value-min)%d)+min;
PREVIOUS
NEXT
Tagged:
#clamp
#modulus
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit