MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / resize

Function resize

libraries/show.js:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 const resize = () => {
58 show.canvas.width = Math.round(innerWidth * show.scale);
59 show.canvas.height = Math.round(innerHeight * show.scale);
60 show.canvas.style["width"] = show.canvas.width;
61 show.canvas.style["height"] = show.canvas.height;
62 show.resize(show.context, show.canvas);
63 };
64
65 let t = 0;
66 const tick = () => {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected