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

Method draw

assets/js/shooting_game.js:104–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected