Sha256: 2606daea07480e45c847274573cb6f4322db5c6553a7b6f357dff8efe735287d
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
require 'psd/layer_info' class PSD class ColorBalance < LayerInfo def self.should_parse?(key) key == 'blnc' end attr_reader :shadows, :midtones, :highlights, :preserve_luminosity def parse @shadows, @midtones, @highlights = 3.times.map do { cyan_red: @file.read_short, magenta_green: @file.read_short, yellow_blue: @file.read_short } end @preserve_luminosity = @file.read_short > 0 end end end
Version data entries
5 entries across 5 versions & 1 rubygems