Method: PSD::Renderer::Blender#initialize
- Defined in:
- lib/psd/renderer/blender.rb
#initialize(fg, bg) ⇒ Blender
Takes a foreground Canvas and a background Canvas
7 8 9 10 11 12 13 14 |
# File 'lib/psd/renderer/blender.rb', line 7 def initialize(fg, bg) @fg = fg @bg = bg @opacity = @fg.opacity.to_i @fill_opacity = @fg.fill_opacity.to_i PSD.logger.debug "Blender: name = #{fg.node.name}, opacity = #{@opacity}, fill opacity = #{@fill_opacity}" end |