(radius)
| 595 | window.onresize = init; |
| 596 | |
| 597 | function drawCircle(radius) { |
| 598 | ctx.beginPath(); |
| 599 | let color = Math.round(197 * (1 - radius / Math.max(w, h))); |
| 600 | ctx.strokeStyle = 'rgba(' + color + ',' + color + ',' + color + ',0.1)'; |
| 601 | ctx.arc(x0, y0, radius, 0, 2 * Math.PI); |
| 602 | ctx.stroke(); |
| 603 | ctx.lineWidth = 2; |
| 604 | } |
| 605 | |
| 606 | let step = 0; |
| 607 |