diff options
author | cyfraeviolae <cyfraeviolae> | 2024-01-20 02:09:10 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-01-20 02:09:10 -0500 |
commit | e180c420850f3ad859839b4831233974788c8acf (patch) | |
tree | 4a12d7dd079244386ebf5a30cf5f7884956e3c4f | |
parent | fe2adaec438a8d417db06a9e1f5f30de336d9290 (diff) |
adjust contrast/saturation
-rw-r--r-- | static/script.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/static/script.js b/static/script.js index a800e5d..7f2d190 100644 --- a/static/script.js +++ b/static/script.js @@ -60,9 +60,9 @@ var queryTypes = [ return 'contrast(' + attrs.get("contrast") + '%)' }, generateDefaultAttrs: function() { - var mid = randomInt(75, 125); - var lowerBound = mid - 25; - var upperBound = mid + 25; + var mid = randomInt(50, 150); + var lowerBound = mid - 50; + var upperBound = mid + 50; return new Map([["contrast", mid], ["contrastLowerBound", lowerBound], ["contrastUpperBound", upperBound]]); }, generateInputId: function(id) { @@ -90,9 +90,9 @@ var queryTypes = [ return 'saturate(' + attrs.get("saturation") + '%)' }, generateDefaultAttrs: function() { - var mid = randomInt(75, 125); - var lowerBound = mid - 25; - var upperBound = mid + 25; + var mid = randomInt(50, 150); + var lowerBound = mid - 50; + var upperBound = mid + 50; return new Map([["saturation", mid], ["saturationLowerBound", lowerBound], ["saturationUpperBound", upperBound]]); }, generateInputId: function(id) { |