()
| 581 | let x0, y0, w, h, dw; |
| 582 | |
| 583 | function init() { |
| 584 | w = window.innerWidth; |
| 585 | h = window.innerHeight; |
| 586 | c.width = w; |
| 587 | c.height = h; |
| 588 | let offset = h > 380 ? 100 : 65; |
| 589 | offset = h > 800 ? 116 : offset; |
| 590 | x0 = w / 2; |
| 591 | y0 = h - offset; |
| 592 | dw = Math.max(w, h, 1000) / 13; |
| 593 | drawCircles(); |
| 594 | } |
| 595 | window.onresize = init; |
| 596 | |
| 597 | function drawCircle(radius) { |