gets rid of unnecessary stuff in isopleth
This commit is contained in:
parent
6a0fe4beb7
commit
98a37771ca
@ -153,10 +153,7 @@ BallRenderer.prototype = {
|
|||||||
createArray: function(){
|
createArray: function(){
|
||||||
return new Uint8ClampedArray(this.size * 4);
|
return new Uint8ClampedArray(this.size * 4);
|
||||||
},
|
},
|
||||||
isopleth: function(factor){
|
isopleth: function(){
|
||||||
var skip = false;
|
|
||||||
if(!(factor>0)) factor = 1;
|
|
||||||
this.isoplethLayer = this.createArray();
|
|
||||||
for (var i = 0, len = this.contourLayer.length; i<len; i+=4){
|
for (var i = 0, len = this.contourLayer.length; i<len; i+=4){
|
||||||
var alpha = this.contourLayer[i + 3];
|
var alpha = this.contourLayer[i + 3];
|
||||||
if (alpha > 0 && alpha < 255){
|
if (alpha > 0 && alpha < 255){
|
||||||
|
Loading…
Reference in New Issue
Block a user