UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

7 lines 152 B
export const findNextPowerOf2 = (x) => { let p = 1; while (x > p) p <<= 1; return p; }; //# sourceMappingURL=findNextPowerOf2.js.map