diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 18:44:06 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 18:44:06 +0100 |
| commit | b9426877cfe30b74d03ec756b93bd047c402d7ad (patch) | |
| tree | 5977e284fe9dd1fc697fc4b0f750ba969c08df2f /docs/js/stars.js | |
| parent | 8b709705ba31e7e9c7f46c7c8d60fc143bfdccb3 (diff) | |
we have site
Diffstat (limited to 'docs/js/stars.js')
| -rw-r--r-- | docs/js/stars.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/js/stars.js b/docs/js/stars.js index f1569eb..0637473 100644 --- a/docs/js/stars.js +++ b/docs/js/stars.js @@ -18,8 +18,8 @@ const stars = (function(){ function ri(n){ return Math.random() * n } function rr(a,b){ return (b-a) * Math.random() + a } function build(){ - var w = canvas.width = window.innerWidth - var h = canvas.height = window.innerHeight + var w = canvas.width = window.innerWidth * window.devicePixelRatio + var h = canvas.height = window.innerHeight * window.devicePixelRatio ctx.clearRect(0,0,w,h) var n = Math.sqrt(w*h)|0 while (n--) { |
