diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2022-02-07 21:41:44 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2022-02-07 21:41:44 +0100 |
| commit | 1d2b997b0a34468edd46acf2e77a995b1881d7cd (patch) | |
| tree | 6ee3e8fc86743bcfdca02873d790ec8244f2487c | |
| parent | d73afe629941318b0bca37d6ffd27256f5d13822 (diff) | |
improve front page animation
| -rw-r--r-- | docs/assets/js/shards.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/assets/js/shards.js b/docs/assets/js/shards.js index c1f1476..8ee2642 100644 --- a/docs/assets/js/shards.js +++ b/docs/assets/js/shards.js @@ -78,8 +78,11 @@ const shards = (function () { if (w.min > w.max) { w.min += 10; } - let rot = { min: randint(360), max: randrange(720, 1080) }; - console.log(w, rot); + let rotMin = randint(360); + let rot = { + min: rotMin, + max: rotMin * randrange(2, 3) + randint(90) + 270, + }; for (var i = 0; i < count; i++) { update(i, t, w, rot, dark, light); } |
