Sha256: c20d3b6efb1190831a634369848527270188d67ee8920fb88b6e4cdbfeca5bd4

Contents?: true

Size: 407 Bytes

Versions: 6

Compression:

Stored size: 407 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

6 entries across 6 versions & 1 rubygems

Version Path
mojo_magick-0.5.6 examples/composite.rb
mojo_magick-0.5.5 examples/composite.rb
mojo_magick-0.5.4 examples/composite.rb
mojo_magick-0.5.3 examples/composite.rb
mojo_magick-0.5.2 examples/composite.rb
mojo_magick-0.5.1 examples/composite.rb