Skip to content

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

@avladut

Description

@avladut

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions