adds colour to contours
This commit is contained in:
parent
62b9de79aa
commit
285260b8b0
@ -189,7 +189,10 @@ BallRenderer.prototype = {
|
||||
for (var i = 0; i< this.pointLayer.length; i+=4){
|
||||
if(this.pointLayer[i+3] === 0) continue;
|
||||
var currentAlpha = this.pointLayer[i+3];
|
||||
this.contourLayer[i+3] = gradient[currentAlpha*4+3];
|
||||
this.contourLayer[i+3] = gradient[currentAlpha*4+3]*2;
|
||||
this.contourLayer[i+2] = gradient[255];
|
||||
this.contourLayer[i+1] = gradient[255];
|
||||
this.contourLayer[i+0] = gradient[255];
|
||||
}
|
||||
},
|
||||
isopleth: function(){
|
||||
|
Loading…
Reference in New Issue
Block a user