Music/node_modules/node-pnglib/src/pnglib.js
// compute the index into a png for a given pixel
compute the index into a png for a given pixel
compute the index into a png for a given pixel
index(x, y) {
    let i = y * (this.width + 1) + x + 1;
    let offset = this.idat_offs + 8 + 2 + 5;
    return offset * ((i / 0xffff) | 0 + 1) + i;
  }
index ( x , y ) { let i = y * ( this . width + 1 ) + x + 1 ; let offset = this . idat_offs + 8 + 2 + 5 ; return offset * ( ( i / 0xffff ) | 0 + 1 ) + i ; }
compute the index into a png for a given pixel
compute the index into a png for a given pixel