MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / draw

Method draw

assets/js/shooting_game.js:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 this.color = color
19 }
20 draw() {
21 c.beginPath()
22 c.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false)
23 c.fillStyle = this.color
24 c.fill()
25 }
26}
27
28class Projectile {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected