Module: PSD::Layer::BlendModes
Instance Attribute Summary collapse
-
#blend_mode ⇒ Object
readonly
Returns the value of attribute blend_mode.
Instance Method Summary collapse
- #blending_mode ⇒ Object
-
#hidden? ⇒ Boolean
Is this layer hidden?.
Instance Attribute Details
#blend_mode ⇒ Object (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_mode ⇒ Object
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?
12 13 14 |
# File 'lib/psd/layer/blend_modes.rb', line 12 def hidden? !visible end |