Sha256: f0bca0283ea5256a20ec17601cefebaeef27ce94576e3a47b322ab952a615fc5
Contents?: true
Size: 504 Bytes
Versions: 13
Compression:
Stored size: 504 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
13 entries across 13 versions & 3 rubygems