Created
May 16, 2019 12:23
-
-
Save anuraghazra/31c636144e51c7c54f7b9bc4d28548d5 to your computer and use it in GitHub Desktop.
Rendering the dots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
ctx.beginPath(); | |
ctx.fillStyle = this.color; | |
ctx.arc(this.pos.x, this.pos.y, this.radius, 0, Math.PI * 2); | |
ctx.fill(); | |
ctx.closePath(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment