invert connectionDensity so it makes more sense

This commit is contained in:
Asif Bacchus 2020-04-08 07:52:15 -06:00
parent 07239b51b3
commit 398e85a7b4

View File

@ -213,14 +213,14 @@ function particles(){
}
if (typeof connectionDensity == 'undefined'){
connectionDensity = 7;
connectionDensity = (1 / 15) * 100;
}
else if (Number.isFinite(connectionDensity) && connectionDensity > 1){
connectionDensity;
connectionDensity = (1 / connectionDensity) * 100;
}
else{
connectionDensity = 7;
console.log("'connectionDensity' must be a finite number greater than 1. Using default of '7'");
connectionDensity = (1 / 15) * 100;
console.log("'connectionDensity' must be a finite number greater than 1. Using default of '15'");
}
if (typeof speed == 'undefined'){