'use strict';

var fs = require('fs');
var data;
var buf = module.exports = new Buffer(8);
var colPalette = require('./color-map');


var rs = fs.readFile(__dirname + '/../img/palette-bitmap.bmp', function(err, data){

  if (err) return console.log('error buffering bitmap', err);
    paletteInfo.length = data.readUInt32LE(2);//11078
    paletteInfo.width = data.readUInt32LE(18);//100
    paletteInfo.height = data.readUInt32LE(22);//100
    paletteInfo.bitsPerPix = data.readUInt32LE(28);//8 in palette, 24 in non
    paletteInfo.type = data.toString('utf8', 0, 2);//B

    CPalette.darken(data);

    colPalette.darken(data);

    fs.writeFile(__dirname + '/../img/darkenImage.bmp', data, function() {
        if (err) return console.log(err);

        CPalette.invert(data);

            colPalette.invert(data);

            fs.writeFile(__dirname + '/../img/invertImage.bmp', data, function() {
               if (err) return console.log(err);
        });
    });
});


exports.data = data;





@@ -277,327 +277,8 @@
 rr);
-%0A    paletteInfo.length = data.readUInt32LE(2);//11078%0A    paletteInfo.width = data.readUInt32LE(18);//100%0A    paletteInfo.height = data.readUInt32LE(22);//100%0A    paletteInfo.bitsPerPix = data.readUInt32LE(28);//8 in palette, 24 in non%0A    paletteInfo.type = data.toString('utf8', 0, 2);//B%0A%0A    CPalette.darken(data);
 %0A%0A  

Update buffer.js