gets rid of unnecessary stuff in isopleth

This commit is contained in:
Francisco Dans 2015-02-25 18:10:31 +01:00
parent 6a0fe4beb7
commit 98a37771ca

View File

@ -153,10 +153,7 @@ BallRenderer.prototype = {
createArray: function(){
return new Uint8ClampedArray(this.size * 4);
},
isopleth: function(factor){
var skip = false;
if(!(factor>0)) factor = 1;
this.isoplethLayer = this.createArray();
isopleth: function(){
for (var i = 0, len = this.contourLayer.length; i<len; i+=4){
var alpha = this.contourLayer[i + 3];
if (alpha > 0 && alpha < 255){