Skip to content

Commit bb8478d

Browse files
committed
resolution fix mobile
1 parent daadbb9 commit bb8478d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let randomizeButton = document.getElementById('randomize');
2727
const resetParamValues = () => {
2828
let scaleLen = .3+ Math.random()*0.5
2929
paramValues = {
30-
'lineWidth' : (5 + Math.random()*3)*Math.min(window.innerWidth, window.innerHeight)/900,
30+
'lineWidth' : (5 + Math.random()*3)*(Math.min(window.innerWidth, window.innerHeight)/900)**0.7,
3131
'scaleFactorLen' : scaleLen,
3232
'scaleFactorWidth' : (0.3+ Math.random()*0.4)/((1+scaleLen)),
3333

0 commit comments

Comments
 (0)