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

Function resizeCanvas

assets/js/BackgroundEffect.js:158–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156});
157
158var resizeCanvas = function () {
159 cW = window.innerWidth;
160 cH = window.innerHeight;
161 c.width = cW * devicePixelRatio;
162 c.height = cH * devicePixelRatio;
163 ctx.scale(devicePixelRatio, devicePixelRatio);
164};
165
166(function init() {
167 resizeCanvas();

Callers 2

windowResizedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected