File size: 337 Bytes
4ee4376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default (data, map) => {
  let pict = {};

  // similar format to game artwork
  // 4 byte header PICT
  // 4 byte length
  // 4 byte fixed '80 00 00 00'
  // 2 byte image width
  // 2 byes image height
  // [length] bytes = image data, 1 byte per pixel using palette lookup

  pict.raw = data;

  map._segmentData.PICT = pict;
};