UNPKG

@spearwolf/twopoint5d

Version:

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

11 lines 428 B
export function base64toUint32Arr(base64, isLittleEndian = true) { const { buffer } = Uint8Array.from(atob(base64), (char) => char.charCodeAt(0)); const view = new DataView(buffer); const len = view.byteLength >> 2; const arr = new Uint32Array(len); for (let i = 0; i < len; i++) { arr[i] = view.getUint32(i << 2, isLittleEndian); } return arr; } //# sourceMappingURL=base64toUint32Arr.js.map