Omnibus's picture
Upload 131 files
4ee4376
raw
history blame contribute delete
340 Bytes
import { resize } from './common';
export default (data, map) => {
let view = new Uint8Array(data);
let xplt = [];
view.forEach((bits, i) => {
xplt[i] = bits;
});
// resize data array from 64x64 to 128x128
xplt = resize(xplt, 64, 128);
xplt.forEach((data, i) => {
map.cells[i]._segmentData.XPLT = xplt[i];
});
};