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

Function draw

assets/js/snow.js:79–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 function draw() {
80 ctx.clearRect(0, 0, W, H);
81 ctx.beginPath();
82
83 var p;
84 for (var i = 0; i < snowGroup.length; i++) {
85 p = snowGroup[i];
86 ctx.fillStyle = fillStyle;
87 ctx.moveTo(p.x, p.y);
88 ctx.arc(p.x, p.y, p.r, 0, 2 * Math.PI);
89 }
90 ctx.fill();
91 update();
92 }
93
94 var delta = 0;
95 function update() {

Callers

nothing calls this directly

Calls 1

updateFunction · 0.70

Tested by

no test coverage detected