MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / resize

Function resize

components/balatro.tsx:165–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 let program: Program;
164
165 function resize() {
166 renderer.setSize(container.offsetWidth, container.offsetHeight);
167 if (program) {
168 program.uniforms.iResolution.value = [
169 gl.canvas.width,
170 gl.canvas.height,
171 gl.canvas.width / gl.canvas.height,
172 ];
173 }
174 }
175 window.addEventListener("resize", resize);
176 resize();
177

Callers 1

BalatroFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected