Module: PSD::Layer::BlendModes

Included in:
PSD::Layer
Defined in:
lib/psd/layer/blend_modes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blend_modeObject (readonly)

Returns the value of attribute blend_mode.



4
5
6
# File 'lib/psd/layer/blend_modes.rb', line 4

def blend_mode
  @blend_mode
end

Instance Method Details

#blending_modeObject



14
15
16
17
18
19
20
# File 'lib/psd/layer/blend_modes.rb', line 14

def blending_mode
  if !info[:section_divider].nil? && info[:section_divider].blend_mode
    BlendMode::BLEND_MODES[info[:section_divider].blend_mode.strip.to_sym]
  else
    @blend_mode.mode
  end
end

#hidden?Boolean

Is this layer hidden?

Returns:

  • (Boolean)


10
11
12
# File 'lib/psd/layer/blend_modes.rb', line 10

def hidden?
  !visible
end