Sha256: 33ea997314512e2cfed973811d637c14f2ef312d99191f684be0dab00c8ca1ee
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
require 'rvg/rvg' include Magick RVG.dpi = 90 rvg = 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rmagick-1.8.0 | doc/ex/circle01.rb |
rmagick-1.8.1 | doc/ex/circle01.rb |
rmagick-1.8.2 | doc/ex/circle01.rb |
rmagick-1.8.3 | doc/ex/circle01.rb |