MCPcopy Index your code
hub / github.com/SnapDrop/snapdrop / drawCircle

Function drawCircle

client/scripts/ui.js:597–604  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

595 window.onresize = init;
596
597 function drawCircle(radius) {
598 ctx.beginPath();
599 let color = Math.round(197 * (1 - radius / Math.max(w, h)));
600 ctx.strokeStyle = 'rgba(' + color + ',' + color + ',' + color + ',0.1)';
601 ctx.arc(x0, y0, radius, 0, 2 * Math.PI);
602 ctx.stroke();
603 ctx.lineWidth = 2;
604 }
605
606 let step = 0;
607

Callers 1

drawCirclesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected