MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / drawScore

Function drawScore

assets/js/pingpong.js:80–89  ·  view source on GitHub ↗
(x, y, score)

Source from the content-addressed store, hash-verified

78
79// function to draw score
80function drawScore(x, y, score) {
81 ctx.fillStyle = 'white';
82 ctx.font = '35px sans-serif';
83
84 // syntax --> fillText(text, x, y)
85 ctx.fillText(score, x, y);
86
87
88
89}
90
91// function to draw paddle
92function drawPaddle(x, y, width, height, color) {

Callers 1

renderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected