Subject: Re: Using colour to indicate response intensity
According to my understanding of your problem, I think you should do
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
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.
hence you map the color range lenearly to number range.
View All Messages in comp.graphics.algorithms
Using colour to indicate response intensity =>
Copyright © 2006 WatermarkFactory.com. All Rights Reserved.