**comp.graphics.algorithms**

## Subject: **Re: Using colour to indicate response intensity**

Hi,

According to my understanding of your problem, I think you should do

this.

take a line plotting algorithm to lenearly scale color range to the

number range you have.

the equation would be : m= (y2-y1)/(x2-x1)= (y-y1)/(x-x1)

let y axis be colour intensity range(eg: y1=0..y2=255) and x axis be

the number range (x1=min..x2=max), so you can calculate m first

[(y2-y1)/(x2-x1)],

then you have the number n i.e min<=n<=max, now put x=n and using the

above equation get the color intensity y.

i.e y=m*(x-x1)+y1,

hence you map the color range lenearly to number range.

Reply

View All Messages in

**comp.graphics.algorithms**

path:

Using colour to indicate response intensity =>

Replies:

Copyright © 2006 WatermarkFactory.com. All Rights Reserved.