We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8478d commit b6c2eafCopy full SHA for b6c2eaf
main.js
@@ -26,8 +26,9 @@ let randomizeButton = document.getElementById('randomize');
26
27
const resetParamValues = () => {
28
let scaleLen = .3+ Math.random()*0.5
29
+ let winRatio = Math.min(window.innerWidth, window.innerHeight)/900;
30
paramValues = {
- 'lineWidth' : (5 + Math.random()*3)*(Math.min(window.innerWidth, window.innerHeight)/900)**0.7,
31
+ 'lineWidth' : (6 + Math.random()*3)*((winRatio**0.5)*(winRatio<1)+(winRatio**0.8)*(winRatio>=1)) ,
32
'scaleFactorLen' : scaleLen,
33
'scaleFactorWidth' : (0.3+ Math.random()*0.4)/((1+scaleLen)),
34
0 commit comments