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