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

Method calcSize

components/liquid-ether.tsx:996–1007  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

994 });
995 }
996 calcSize() {
997 const width = Math.max(
998 1,
999 Math.round(this.options.resolution * Common.width)
1000 );
1001 const height = Math.max(
1002 1,
1003 Math.round(this.options.resolution * Common.height)
1004 );
1005 this.cellScale.set(1 / width, 1 / height);
1006 this.fboSize.set(width, height);
1007 }
1008 resize() {
1009 this.calcSize();
1010 for (const key in this.fbos) {

Callers 2

initMethod · 0.95
resizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected