doesn't colorize is alpha is 0 or less
This commit is contained in:
parent
bd479fc507
commit
ee332d0762
@ -275,7 +275,7 @@ BallRenderer.prototype = {
|
||||
for (var i = 0, len = this.pointLayer.length; i< len; i+=4){
|
||||
alpha = this.pointLayer[i+3] * 4; // get gradient color from opacity value
|
||||
|
||||
if (alpha) {
|
||||
if (alpha>0) {
|
||||
this.heatmapLayer[i] = grad[alpha]; // R
|
||||
this.heatmapLayer[i + 1] = grad[alpha + 1]; // G
|
||||
this.heatmapLayer[i + 2] = grad[alpha + 2]; // B
|
||||
|
Loading…
Reference in New Issue
Block a user