adds colour to contours

This commit is contained in:
Francisco Dans 2015-04-27 12:52:51 +02:00
parent 62b9de79aa
commit 285260b8b0

View File

@ -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(){