We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › How to do a HeatMap?
Page Index Toggle Pages: 1
How to do a HeatMap??? (Read 1324 times)
How to do a HeatMap???
May 7th, 2010, 9:23am
 
Hello,

I know this question as been asked quite a few times, but I have implemented the heatmap like some people described here, and it's really slow. I don't know if I'm doing it right.
I'm creating a image with transparent elipses (that overlap creating darker and clearer areas), after that I check each pixel of the image I created and do a lerpColor() with the alpha value of the pixel.
The problem with this is that it's too slow, do you know any better way to do a heatmap?

Thanks
doart3
Re: How to do a HeatMap???
Reply #1 - May 7th, 2010, 12:10pm
 
Drawing an ellipse in processing is slower than drawing a rect and rotating for some reason.

Try using rotating rectangles. Lerp is cool but I prefer the blend functions. Gives me more range.

Page Index Toggle Pages: 1