Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Visualise Real time long CSV datatype

$
0
0

hello,

do you know map() ?

It takes your value incomingValues[1] .
Let's say it comes normally between 10 and 12456, and you want to show it as something
between 0 and 100. Then you say:

  1. whatIWantToDisplay = map ( incomingValues[1], 10 , 12456, 0 , 100 );

so it maps the value incomingValues[1] from one range to another range proportional.

Does this help?    


Viewing all articles
Browse latest Browse all 1768

Trending Articles