Sha256: 597a7db8c97e97edde3e9b86771d01d255f562139bf84d9eb13f8f90da28f074

Contents?: true

Size: 455 Bytes

Versions: 59

Compression:

Stored size: 455 Bytes

Contents

require 'rvg/rvg'

Magick::RVG.dpi = 90

rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
    canvas.background_fill = 'white'
    canvas.desc = "Example Use01 - Simple case of 'use' on a 'rect'"
    r = Magick::RVG::Group.new do |grp|
            grp.rect(60, 10)
        end
    canvas.rect(99.6, 29.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2)
    canvas.use(r, 20, 10)
end

rvg.draw.write('Use01.gif')

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/Use01.rb
rmagick-2.13.3 doc/ex/Use01.rb
rmagick-2.13.3.rc1 doc/ex/Use01.rb
rmagick-2.13.2 doc/ex/Use01.rb
rdp-rmagick-0.0.0 doc/ex/Use01.rb
rmagick-2.13.1 doc/ex/Use01.rb
rmagick-2.12.2 doc/ex/Use01.rb
rmagick-2.12.1 doc/ex/Use01.rb
rmagick-2.12.0 doc/ex/Use01.rb
rmagick-2.11.1 doc/ex/Use01.rb
rmagick-2.10.0 doc/ex/Use01.rb
rmagick-2.11.0 doc/ex/Use01.rb
rmagick-1.10.1 doc/ex/Use01.rb
rmagick-1.10.0 doc/ex/Use01.rb
rmagick-1.13.0 doc/ex/Use01.rb
rmagick-1.12.0 doc/ex/Use01.rb
rmagick-1.11.1 doc/ex/Use01.rb
rmagick-1.11.0 doc/ex/Use01.rb
rmagick-1.15.1 doc/ex/Use01.rb
rmagick-1.15.0 doc/ex/Use01.rb