Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

processing map in javascript

// Please consider to go to the stackoverflow link and give the guy that answered an upvote
function map_range(value, low1, high1, low2, high2) {
    return low2 + (high2 - low2) * (value - low1) / (high1 - low1);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #processing #map #javascript
ADD COMMENT
Topic
Name
4+6 =