webgl-heatmap
webgl-heatmap copied to clipboard
Interpolation increase point max value.
Hello there !
I have an accuracy issue with this awesome library. Here is an example : I have heatmap with blue, yellow and red colors gradient. I want to add three points (like this example): Point1 : addPoint(130, 100, 90, 0.6) ([130,100] color must be yellow) Point2 : addPoint(100, 130, 90, 0.2) ([100,130] color must be blue) Point3 : addPoint(130, 130, 90, 0.7) ([130,130] color must be orange) And there is that I get : Point1 is orange/red Point2 is blue/yellow Point3 is red But I expect to have : Point1 yellow, Point2 blue, Point3 orange Between Points 1 and 2 yellow to blue gradient Between Points 2 and 3, blue to orange gradient Between points 1 and 3, yellow to orange gradient This is very important because there is a legend to show which color match with values but because of this sum, this is not accurate at all.. So, I wanted to know if there is a way to have this kind of interpolation.
Thank you for your work.