Module: PSD::Layer::BlendModes

Extended by:
Forwardable
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.



6
7
8
# File 'lib/psd/layer/blend_modes.rb', line 6

def blend_mode
  @blend_mode
end

Instance Method Details

#blending_modeObject



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

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)


12
13
14
# File 'lib/psd/layer/blend_modes.rb', line 12

def hidden?
  !visible
end