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

Function drawNet

assets/js/pingpong.js:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69/* drawing functions */
70// function to draw net
71function drawNet() {
72 // set the color of net
73 ctx.fillStyle = net.color;
74
75 // syntax --> fillRect(x, y, width, height)
76 ctx.fillRect(net.x, net.y, net.width, net.height);
77}
78
79// function to draw score
80function drawScore(x, y, score) {

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected