From 398e85a7b4d97d3a5ec04c4c535ca7f0cb48bac5 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 8 Apr 2020 07:52:15 -0600 Subject: [PATCH] invert connectionDensity so it makes more sense --- js/particles.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/particles.js b/js/particles.js index 4ce3fd8..468824f 100644 --- a/js/particles.js +++ b/js/particles.js @@ -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'){