Sha256: e334ded007384ebbd0c2453393528910c38dd69cda611bc8083ba8d1ee3c13e2
Contents?: true
Size: 498 Bytes
Versions: 6
Compression:
Stored size: 498 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
6 entries across 6 versions & 1 rubygems