recreate map function
in
Programming Questions
•
2 years ago
Can someone tell me how to code my own map function?
map(value, low1, high1, low2, high2)
I need it in after effects which allows some coding aswell, it allready has some default math functions but the map function is missing.
If i know how to rebuild in processing then i can for after effects aswell.
- float tv = 20;
- tv = map2(tv, 0, 600, 600, 1400);
- float map2(float value, float low1, float high1, float low2, float high2){
- return #something;
- }
1