(x, y, radius, color, velocity)
| 94 | const friction = 0.99 |
| 95 | class Particle { |
| 96 | constructor(x, y, radius, color, velocity) { |
| 97 | this.x = x |
| 98 | this.y = y |
| 99 | this.radius = radius |
| 100 | this.color = color |
| 101 | this.velocity = velocity |
| 102 | this.alpha = 1 |
| 103 | } |
| 104 | draw() { |
| 105 | c.save() |
| 106 | c.globalAlpha = this.alpha |
nothing calls this directly
no outgoing calls
no test coverage detected