File: blending_ranges.coffee

Defined in: lib/psd/layer

Variables Summary

module.exports =
{
  parseBlendingRanges: function() {
    var i, length, numChannels, _i, _results;
    length = this.file.readInt();
    this.blendingRanges.grey = {
      source: {
        black: [this.file.readByte(), this.file.readByte()],
        white: [this.file.readByte(), this.file.readByte()]
      },
      dest: {
        black: [this.file.readByte(), this.file.readByte()],
        white: [this.file.readByte(), this.file.readByte()]
      }
    };
    numChannels = (length - 8) / 8;
    this.blendingRanges.channels = [];
    _results = [];
    for (i = _i = 0; 0 <= numChannels ? _i < numChannels : _i > numChannels; i = 0 <= numChannels ? ++_i : --_i) {
      _results.push(this.blendingRanges.channels.push({
        source: {
          black: [this.file.readByte(), this.file.readByte()],
          white: [this.file.readByte(), this.file.readByte()]
        },
        dest: {
          black: [this.file.readByte(), this.file.readByte()],
          white: [this.file.readByte(), this.file.readByte()]
        }
      }));
    }
    return _results;
  }
}

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: