Sha256: 49ed28d7fc7225bb7b90cfd6cbec2bd98e4e3bc736337a3d9c654f6a72cb0e03

Contents?: true

Size: 517 Bytes

Versions: 59

Compression:

Stored size: 517 Bytes

Contents

require 'rvg/rvg'

Magick::RVG.dpi = 90

rvg = Magick::RVG.new(12.cm, 4.cm) do |canvas|
    canvas.viewbox(0, 0, 1200, 400)
    canvas.background_fill = 'white'
    canvas.desc = "Example circle01 - circle filled with red and stroked with blue"

    # Show outline of canvas using the 'rect' method
    canvas.rect(1195, 395, 1, 1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>2)

    canvas.circle(100, 600, 200).styles(:fill=>'red', :stroke=>'blue', :stroke_width=>10)
end

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

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
rmagick-1.9.2 doc/ex/circle01.rb
rmagick-2.3.0 doc/ex/circle01.rb
rmagick-2.1.0 doc/ex/circle01.rb
rmagick-2.0.0 doc/ex/circle01.rb
rmagick-1.9.3 doc/ex/circle01.rb
rmagick-2.2.0 doc/ex/circle01.rb
rmagick-2.2.2 doc/ex/circle01.rb
rmagick-2.5.1 doc/ex/circle01.rb
rmagick-2.4.0 doc/ex/circle01.rb
rmagick-2.5.0 doc/ex/circle01.rb
rmagick-2.5.2 doc/ex/circle01.rb
rmagick-2.6.0 doc/ex/circle01.rb
rmagick-2.8.0 doc/ex/circle01.rb
rmagick-2.7.0 doc/ex/circle01.rb
rmagick-2.7.1 doc/ex/circle01.rb
rmagick-2.7.2 doc/ex/circle01.rb
rmagick-2.9.0 doc/ex/circle01.rb
rmagick-2.9.1 doc/ex/circle01.rb
rmagick-2.9.2 doc/ex/circle01.rb