This is usually done with shaders and a circle of buffers which maintain state.
outputTexture2d[inputTexture2d[inputPosition]]++
In other words, if you have a large texture with (x,y) coordinates of points, can you draw another texture that shows a density cloud of these points? In webgl2 it becomes a phd level problem.
Surely you could visualize it but not as a side effect.