Sha256: 14d2398afe4b3e212098e67ff7877091e469ea1ea706375fbb29452c9f22a030

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

require 'psd/layer_info'

class PSD
  class Vibrance < LayerInfo
    def self.should_parse?(key)
      key == 'vibA'
    end

    def parse
      @file.seek 4, IO::SEEK_CUR
      @data = Descriptor.new(@file).parse
    end

    def vibrance
      @data['vibrance']
    end

    def saturation
      @data['Strt']
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
psd-3.9.0 lib/psd/layer/info/vibrance.rb
psd-3.8.0 lib/psd/layer/info/vibrance.rb
psd-3.7.0 lib/psd/layer/info/vibrance.rb
psd-3.6.0 lib/psd/layer/info/vibrance.rb
psd-3.5.0 lib/psd/layer/info/vibrance.rb