()
| 102 | this.alpha = 1 |
| 103 | } |
| 104 | draw() { |
| 105 | c.save() |
| 106 | c.globalAlpha = this.alpha |
| 107 | c.beginPath() |
| 108 | c.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false) |
| 109 | c.fillStyle = this.color |
| 110 | c.fill() |
| 111 | c.restore() |
| 112 | } |
| 113 | |
| 114 | update() { |
| 115 | this.draw() |