Explained: Real-time heatmap example
letmein.at
letmein.at
Interesting how he uses the same canvas element to track opacity and display the colorization. You can split out the opacity into its own (hidden) canvas so that the opacity is only bound to the color mapping, not the actual display.
Perhaps this is why mouse-based tracking isn't very useful for user testing. It makes a fun demo, though.