Sha256: 602a340d4159ab6dfdf21d99a3ca1e41081cb8768c7f87b741e1a953f8f35626

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

#!/usr/bin/env ruby
#

require 'mojo_magick'

MojoMagick.convert(nil, 'composite_out.png') do |c|
  c.size '200x200'
  c.delay 100
  c.image_block do # first layer
    c.background 'blue'
    c.fill 'white'
    c.gravity 'northwest'
    c.label 'NW'
  end
  c.image_block do # second layer
    c.background 'transparent'
    c.fill 'red'
    c.gravity 'southeast'
    c.label 'SE'
  end
  c.composite
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mojo_magick-0.5.7 examples/composite.rb