gpolak / LFHeatMap

Extremely fast iOS heat maps
MIT License
391 stars 49 forks source link

Help request for optimization: smaller values should decrease strength #13

Open avladut opened 6 years ago

avladut commented 6 years ago

Hello,

I found your library great for speed and reliability. I'm working on an application that requires a modification on the way the smaller weights interact with larger weights. screen shot 2017-11-07 at 11 38 10 If you see the screenshot, the label in the middle signifies the weight. So the point "1" should not increase the power of the zone, but create 2 smaller intensity zones between 64 and 27, so decrease the intensity near 1. density[y*width + x] += currentDensity * point_weight_percent[i]; I've found the code that calculates the intensity, but any attempt to modify it completely messes up the entire heatmap by cutting the visual consistency of the shapes. Is there any easy way to modify the code for the desired effect?

gpolak commented 6 years ago

Hi @avladut, sorry, I'm not actively working on this library anymore. I'm not sure if there's an easy way to do what you're asking, but if you do happy to look at your PR if you figure something out.